From a184a08e550564f54da05ccf6afc1337e9799f23 Mon Sep 17 00:00:00 2001 From: tunahanertekin Date: Thu, 7 Mar 2024 12:51:27 +0000 Subject: [PATCH] build(ci): generate fabric8 models 0.1.0-alpha.27 for robot.roboscale.io v0.2.7-alpha.6.1, fleet.roboscale.io v0.1.6-alpha.16 and connection-hub.roboscale.io v0.1.7-alpha.12 --- crds/base/fleet.roboscale.io_fleets.yaml | 3 +++ crds/base/robot.roboscale.io_ros2workloads.yaml | 2 +- pom.xml | 2 +- .../fleetspec/DiscoveryServerTemplate.java | 14 +++++++++++++- .../ros2workloadstatus/StatefulSetStatuses.java | 4 ++-- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/crds/base/fleet.roboscale.io_fleets.yaml b/crds/base/fleet.roboscale.io_fleets.yaml index 68e29d81..3d9d101d 100644 --- a/crds/base/fleet.roboscale.io_fleets.yaml +++ b/crds/base/fleet.roboscale.io_fleets.yaml @@ -57,6 +57,9 @@ spec: value. If instance type is `Client`, it should be the same with Server's hostname. Used for getting Server's IP over DNS. type: string + protocol: + default: TCP + type: string reference: description: Reference to the `Server` instance. It is used if `.spec.type` is `Client`. Referenced object can be previously diff --git a/crds/base/robot.roboscale.io_ros2workloads.yaml b/crds/base/robot.roboscale.io_ros2workloads.yaml index 9cb4736e..44b0d023 100644 --- a/crds/base/robot.roboscale.io_ros2workloads.yaml +++ b/crds/base/robot.roboscale.io_ros2workloads.yaml @@ -2622,7 +2622,7 @@ spec: - created type: object status: - description: Status of the ROS2Bridge instance. + description: Status of the StatefulSet. properties: availableReplicas: description: Total number of available pods (ready for at diff --git a/pom.xml b/pom.xml index f6edbdd1..6fa495b0 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.roboscale.robot robot-fabric8-client - 0.1.0-alpha.26 + 0.1.0-alpha.27 robot-fabric8-client https://robolaunch.io diff --git a/src/main/java/io/roboscale/fleet/v1alpha1/fleetspec/DiscoveryServerTemplate.java b/src/main/java/io/roboscale/fleet/v1alpha1/fleetspec/DiscoveryServerTemplate.java index ae43a054..a8a8af3e 100644 --- a/src/main/java/io/roboscale/fleet/v1alpha1/fleetspec/DiscoveryServerTemplate.java +++ b/src/main/java/io/roboscale/fleet/v1alpha1/fleetspec/DiscoveryServerTemplate.java @@ -1,7 +1,7 @@ package io.roboscale.fleet.v1alpha1.fleetspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({"cluster","domainID","hostname","reference","subdomain","type"}) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({"cluster","domainID","hostname","protocol","reference","subdomain","type"}) @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 DiscoveryServerTemplate implements io.fabric8.kubernetes.api.model.KubernetesResource { @@ -57,6 +57,18 @@ public void setHostname(String hostname) { this.hostname = hostname; } + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String protocol = "TCP"; + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + /** * Reference to the `Server` instance. It is used if `.spec.type` is `Client`. Referenced object can be previously provisioned in another cluster. In that case, cluster's name can be specified in `.spec.cluster` field. */ diff --git a/src/main/java/io/roboscale/robot/v1alpha2/ros2workloadstatus/StatefulSetStatuses.java b/src/main/java/io/roboscale/robot/v1alpha2/ros2workloadstatus/StatefulSetStatuses.java index 4cdb980b..d2bad1f5 100644 --- a/src/main/java/io/roboscale/robot/v1alpha2/ros2workloadstatus/StatefulSetStatuses.java +++ b/src/main/java/io/roboscale/robot/v1alpha2/ros2workloadstatus/StatefulSetStatuses.java @@ -39,10 +39,10 @@ public void setResource(io.roboscale.robot.v1alpha2.ros2workloadstatus.statefuls } /** - * Status of the ROS2Bridge instance. + * Status of the StatefulSet. */ @com.fasterxml.jackson.annotation.JsonProperty("status") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("Status of the ROS2Bridge instance.") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("Status of the StatefulSet.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) private io.roboscale.robot.v1alpha2.ros2workloadstatus.statefulsetstatuses.Status status;