From 5d2f9b16b9441bebbc0f0ac762f1d5b34c8ad9f8 Mon Sep 17 00:00:00 2001 From: tunahanertekin Date: Fri, 19 Jan 2024 11:49:35 +0000 Subject: [PATCH] build(ci): generate fabric8 models 0.1.0-alpha.19 for robot.roboscale.io v0.2.6-alpha.16, fleet.roboscale.io v0.1.6-alpha.14 and connection-hub.roboscale.io v0.1.7-alpha.10 --- .../robot.roboscale.io_buildmanagers.yaml | 51 ++++++++++++---- crds/base/robot.roboscale.io_robots.yaml | 28 +++++++-- pom.xml | 2 +- .../v1alpha1/buildmanagerspec/Steps.java | 36 ++++++------ .../buildmanagerspec/steps/Scope.java | 58 +++++++++++++++++++ .../buildmanagerstatus/steps/Step.java | 36 ++++++------ .../buildmanagerstatus/steps/step/Scope.java | 58 +++++++++++++++++++ .../status/steps/Step.java | 36 ++++++------ .../status/steps/step/Scope.java | 58 +++++++++++++++++++ 9 files changed, 292 insertions(+), 71 deletions(-) create mode 100644 src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/steps/Scope.java create mode 100644 src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/step/Scope.java create mode 100644 src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/step/Scope.java diff --git a/crds/base/robot.roboscale.io_buildmanagers.yaml b/crds/base/robot.roboscale.io_buildmanagers.yaml index 69080a9b..bdc53864 100644 --- a/crds/base/robot.roboscale.io_buildmanagers.yaml +++ b/crds/base/robot.roboscale.io_buildmanagers.yaml @@ -181,16 +181,31 @@ spec: name: description: Name of the step. type: string + scope: + description: Selects the scope for BuildManager step. + properties: + path: + description: Absolute path of the directory. It's being + applied if the scope type is `Path`. + type: string + scopeType: + description: Type of the BuildManager scope. Allowed scopes + are `Workspace` and `Path`. + type: string + workspace: + description: Name of the workspace. Should be selected among + the existing workspaces in WorkspaceManager's manifests. + It's being applied if the scope type is `Workspace`. + type: string + required: + - scopeType + type: object script: description: Bash script to run. type: string - workspace: - description: Name of the workspace. Should be selected among - the existing workspaces in WorkspaceManager's manifests. - type: string required: - name - - workspace + - scope type: object type: array type: object @@ -447,16 +462,32 @@ spec: name: description: Name of the step. type: string + scope: + description: Selects the scope for BuildManager step. + properties: + path: + description: Absolute path of the directory. It's being + applied if the scope type is `Path`. + type: string + scopeType: + description: Type of the BuildManager scope. Allowed + scopes are `Workspace` and `Path`. + type: string + workspace: + description: Name of the workspace. Should be selected + among the existing workspaces in WorkspaceManager's + manifests. It's being applied if the scope type is + `Workspace`. + type: string + required: + - scopeType + type: object script: description: Bash script to run. type: string - workspace: - description: Name of the workspace. Should be selected among - the existing workspaces in WorkspaceManager's manifests. - type: string required: - name - - workspace + - scope type: object type: object type: array diff --git a/crds/base/robot.roboscale.io_robots.yaml b/crds/base/robot.roboscale.io_robots.yaml index 4f065b0c..fe5014c8 100644 --- a/crds/base/robot.roboscale.io_robots.yaml +++ b/crds/base/robot.roboscale.io_robots.yaml @@ -931,17 +931,33 @@ spec: name: description: Name of the step. type: string + scope: + description: Selects the scope for BuildManager + step. + properties: + path: + description: Absolute path of the directory. + It's being applied if the scope type is `Path`. + type: string + scopeType: + description: Type of the BuildManager scope. + Allowed scopes are `Workspace` and `Path`. + type: string + workspace: + description: Name of the workspace. Should be + selected among the existing workspaces in + WorkspaceManager's manifests. It's being applied + if the scope type is `Workspace`. + type: string + required: + - scopeType + type: object script: description: Bash script to run. type: string - workspace: - description: Name of the workspace. Should be selected - among the existing workspaces in WorkspaceManager's - manifests. - type: string required: - name - - workspace + - scope type: object type: object type: array diff --git a/pom.xml b/pom.xml index b692bcc2..b7ab48ae 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.roboscale.robot robot-fabric8-client - 0.1.0-alpha.18 + 0.1.0-alpha.19 robot-fabric8-client https://robolaunch.io diff --git a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/Steps.java b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/Steps.java index edf91b61..f3ee4e3a 100644 --- a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/Steps.java +++ b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/Steps.java @@ -1,7 +1,7 @@ package io.roboscale.robot.v1alpha1.buildmanagerspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","script","workspace"}) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","scope","script"}) @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") public class Steps implements io.fabric8.kubernetes.api.model.KubernetesResource { @@ -72,36 +72,36 @@ public void setName(String name) { } /** - * Bash script to run. + * Selects the scope for BuildManager step. */ - @com.fasterxml.jackson.annotation.JsonProperty("script") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") + @com.fasterxml.jackson.annotation.JsonProperty("scope") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Selects the scope for BuildManager step.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String script; + private io.roboscale.robot.v1alpha1.buildmanagerspec.steps.Scope scope; - public String getScript() { - return script; + public io.roboscale.robot.v1alpha1.buildmanagerspec.steps.Scope getScope() { + return scope; } - public void setScript(String script) { - this.script = script; + public void setScope(io.roboscale.robot.v1alpha1.buildmanagerspec.steps.Scope scope) { + this.scope = scope; } /** - * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. + * Bash script to run. */ - @com.fasterxml.jackson.annotation.JsonProperty("workspace") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests.") + @com.fasterxml.jackson.annotation.JsonProperty("script") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String workspace; + private String script; - public String getWorkspace() { - return workspace; + public String getScript() { + return script; } - public void setWorkspace(String workspace) { - this.workspace = workspace; + public void setScript(String script) { + this.script = script; } } diff --git a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/steps/Scope.java b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/steps/Scope.java new file mode 100644 index 00000000..ff644de9 --- /dev/null +++ b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerspec/steps/Scope.java @@ -0,0 +1,58 @@ +package io.roboscale.robot.v1alpha1.buildmanagerspec.steps; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"path","scopeType","workspace"}) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Scope implements io.fabric8.kubernetes.api.model.KubernetesResource { + + /** + * Absolute path of the directory. It's being applied if the scope type is `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("path") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Absolute path of the directory. It's being applied if the scope type is `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String path; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scopeType") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String scopeType; + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + /** + * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workspace") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String workspace; + + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } +} + diff --git a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/Step.java b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/Step.java index 8a915220..cffa7d16 100644 --- a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/Step.java +++ b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/Step.java @@ -1,7 +1,7 @@ package io.roboscale.robot.v1alpha1.buildmanagerstatus.steps; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","script","workspace"}) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","scope","script"}) @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") public class Step implements io.fabric8.kubernetes.api.model.KubernetesResource { @@ -72,36 +72,36 @@ public void setName(String name) { } /** - * Bash script to run. + * Selects the scope for BuildManager step. */ - @com.fasterxml.jackson.annotation.JsonProperty("script") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") + @com.fasterxml.jackson.annotation.JsonProperty("scope") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Selects the scope for BuildManager step.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String script; + private io.roboscale.robot.v1alpha1.buildmanagerstatus.steps.step.Scope scope; - public String getScript() { - return script; + public io.roboscale.robot.v1alpha1.buildmanagerstatus.steps.step.Scope getScope() { + return scope; } - public void setScript(String script) { - this.script = script; + public void setScope(io.roboscale.robot.v1alpha1.buildmanagerstatus.steps.step.Scope scope) { + this.scope = scope; } /** - * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. + * Bash script to run. */ - @com.fasterxml.jackson.annotation.JsonProperty("workspace") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests.") + @com.fasterxml.jackson.annotation.JsonProperty("script") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String workspace; + private String script; - public String getWorkspace() { - return workspace; + public String getScript() { + return script; } - public void setWorkspace(String workspace) { - this.workspace = workspace; + public void setScript(String script) { + this.script = script; } } diff --git a/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/step/Scope.java b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/step/Scope.java new file mode 100644 index 00000000..edd961da --- /dev/null +++ b/src/main/java/io/roboscale/robot/v1alpha1/buildmanagerstatus/steps/step/Scope.java @@ -0,0 +1,58 @@ +package io.roboscale.robot.v1alpha1.buildmanagerstatus.steps.step; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"path","scopeType","workspace"}) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Scope implements io.fabric8.kubernetes.api.model.KubernetesResource { + + /** + * Absolute path of the directory. It's being applied if the scope type is `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("path") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Absolute path of the directory. It's being applied if the scope type is `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String path; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scopeType") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String scopeType; + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + /** + * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workspace") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String workspace; + + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } +} + diff --git a/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/Step.java b/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/Step.java index cf70f9db..228c3b09 100644 --- a/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/Step.java +++ b/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/Step.java @@ -1,7 +1,7 @@ package io.roboscale.robot.v1alpha1.robotstatus.attachedbuildobject.status.steps; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","script","workspace"}) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"command","env","instances","name","scope","script"}) @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") public class Step implements io.fabric8.kubernetes.api.model.KubernetesResource { @@ -72,36 +72,36 @@ public void setName(String name) { } /** - * Bash script to run. + * Selects the scope for BuildManager step. */ - @com.fasterxml.jackson.annotation.JsonProperty("script") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") + @com.fasterxml.jackson.annotation.JsonProperty("scope") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Selects the scope for BuildManager step.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String script; + private io.roboscale.robot.v1alpha1.robotstatus.attachedbuildobject.status.steps.step.Scope scope; - public String getScript() { - return script; + public io.roboscale.robot.v1alpha1.robotstatus.attachedbuildobject.status.steps.step.Scope getScope() { + return scope; } - public void setScript(String script) { - this.script = script; + public void setScope(io.roboscale.robot.v1alpha1.robotstatus.attachedbuildobject.status.steps.step.Scope scope) { + this.scope = scope; } /** - * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. + * Bash script to run. */ - @com.fasterxml.jackson.annotation.JsonProperty("workspace") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests.") + @com.fasterxml.jackson.annotation.JsonProperty("script") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Bash script to run.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String workspace; + private String script; - public String getWorkspace() { - return workspace; + public String getScript() { + return script; } - public void setWorkspace(String workspace) { - this.workspace = workspace; + public void setScript(String script) { + this.script = script; } } diff --git a/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/step/Scope.java b/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/step/Scope.java new file mode 100644 index 00000000..bb42ef9e --- /dev/null +++ b/src/main/java/io/roboscale/robot/v1alpha1/robotstatus/attachedbuildobject/status/steps/step/Scope.java @@ -0,0 +1,58 @@ +package io.roboscale.robot.v1alpha1.robotstatus.attachedbuildobject.status.steps.step; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"path","scopeType","workspace"}) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Scope implements io.fabric8.kubernetes.api.model.KubernetesResource { + + /** + * Absolute path of the directory. It's being applied if the scope type is `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("path") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Absolute path of the directory. It's being applied if the scope type is `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String path; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scopeType") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Type of the BuildManager scope. Allowed scopes are `Workspace` and `Path`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String scopeType; + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + /** + * Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workspace") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of the workspace. Should be selected among the existing workspaces in WorkspaceManager's manifests. It's being applied if the scope type is `Workspace`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String workspace; + + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } +} +