-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Attila Mészáros <[email protected]>
- Loading branch information
Showing
13 changed files
with
260 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/io/csviri/operator/glue/customresource/operator/GlueMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package io.csviri.operator.glue.customresource.operator; | ||
|
||
import java.util.Objects; | ||
|
||
public class GlueMetadata { | ||
|
||
private String name; | ||
private String namespace; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getNamespace() { | ||
return namespace; | ||
} | ||
|
||
public void setNamespace(String namespace) { | ||
this.namespace = namespace; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
GlueMetadata that = (GlueMetadata) o; | ||
return Objects.equals(name, that.name) && Objects.equals(namespace, that.namespace); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(name, namespace); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
src/main/java/io/csviri/operator/glue/dependent/GCGenericDependentResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
package io.csviri.operator.glue.dependent; | ||
|
||
import io.csviri.operator.glue.customresource.glue.Glue; | ||
import io.csviri.operator.glue.templating.GenericTemplateHandler; | ||
import io.fabric8.kubernetes.api.model.GenericKubernetesResource; | ||
import io.javaoperatorsdk.operator.api.reconciler.dependent.GarbageCollected; | ||
|
||
public class GCGenericDependentResource extends GenericDependentResource | ||
implements GarbageCollected<Glue> { | ||
|
||
public GCGenericDependentResource(GenericKubernetesResource desired, String name, | ||
public GCGenericDependentResource(GenericTemplateHandler genericTemplateHandler, | ||
GenericKubernetesResource desired, String name, | ||
boolean clusterScoped) { | ||
super(desired, name, clusterScoped); | ||
super(genericTemplateHandler, desired, name, clusterScoped); | ||
} | ||
|
||
public GCGenericDependentResource(String desiredTemplate, String name, boolean clusterScoped) { | ||
super(desiredTemplate, name, clusterScoped); | ||
public GCGenericDependentResource(GenericTemplateHandler genericTemplateHandler, | ||
String desiredTemplate, String name, boolean clusterScoped) { | ||
super(genericTemplateHandler, desiredTemplate, name, clusterScoped); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.