From fc6be58e9f049cc3f19dfd1217c51d93364b47ac Mon Sep 17 00:00:00 2001 From: tunahanertekin Date: Tue, 5 Mar 2024 16:23:16 +0300 Subject: [PATCH] build(manifests): :whale: update internal manifests --- .../robot.roboscale.io_discoveryservers.yaml | 3 + .../robot.roboscale.io_robotartifacts.yaml | 3 + .../crd/bases/robot.roboscale.io_robots.yaml | 3 + .../robot.roboscale.io_ros2workloads.yaml | 153 +++++++++--------- 4 files changed, 87 insertions(+), 75 deletions(-) diff --git a/config/crd/bases/robot.roboscale.io_discoveryservers.yaml b/config/crd/bases/robot.roboscale.io_discoveryservers.yaml index 38ed171d..3255dba8 100644 --- a/config/crd/bases/robot.roboscale.io_discoveryservers.yaml +++ b/config/crd/bases/robot.roboscale.io_discoveryservers.yaml @@ -74,6 +74,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 provisioned in diff --git a/config/crd/bases/robot.roboscale.io_robotartifacts.yaml b/config/crd/bases/robot.roboscale.io_robotartifacts.yaml index 79a6f7c7..5eca87b5 100644 --- a/config/crd/bases/robot.roboscale.io_robotartifacts.yaml +++ b/config/crd/bases/robot.roboscale.io_robotartifacts.yaml @@ -119,6 +119,9 @@ spec: 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/config/crd/bases/robot.roboscale.io_robots.yaml b/config/crd/bases/robot.roboscale.io_robots.yaml index 23d52bcc..7b33c653 100644 --- a/config/crd/bases/robot.roboscale.io_robots.yaml +++ b/config/crd/bases/robot.roboscale.io_robots.yaml @@ -140,6 +140,9 @@ spec: 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/config/crd/bases/robot.roboscale.io_ros2workloads.yaml b/config/crd/bases/robot.roboscale.io_ros2workloads.yaml index ee74aac5..9cb4736e 100644 --- a/config/crd/bases/robot.roboscale.io_ros2workloads.yaml +++ b/config/crd/bases/robot.roboscale.io_ros2workloads.yaml @@ -35,7 +35,84 @@ spec: spec: description: Specification of the desired behavior of the ROS2Workload. properties: - containers: + discoveryServerTemplate: + description: Discovery server configurational parameters. + properties: + cluster: + description: Cloud instance name that holds DiscoveryServer instance + with `Server` type. Should be empty if the type is `Server` + since it takes cloud instance's name automatically. Should be + set if the type is `Client`. + type: string + domainID: + description: ROS domain ID for robot. See https://docs.ros.org/en/foxy/Concepts/About-Domain-ID.html. + maximum: 101 + minimum: 0 + type: integer + hostname: + description: If instance type is `Server`, it can be an arbitrary + 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 + provisioned in another cluster. In that case, cluster's name + can be specified in `.spec.cluster` field. + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: 'If referring to a piece of an object instead + of an entire object, this string should contain a valid + JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within + a pod, this would take on a value like: "spec.containers{name}" + (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" + (container with index 2 in this pod). This syntax is chosen + only to have some well-defined way of referencing a part + of an object. TODO: this design is not final and this field + is subject to change in the future.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: 'Specific resourceVersion to which this reference + is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + subdomain: + description: If instance type is `Server`, it can be an arbitrary + value. If instance type is `Client`, it should be the same with + Server's subdomain. Used for getting Server's IP over DNS. + type: string + type: + description: Instance type can be either `Server` or `Client`. + If `Server`, instance creates discovery server resources and + workloads. Other `Client` instances can connect to the `Server` + instance. If `Client`, instance tries to connect a `Server` + instance and hold `Server` configuration in a ConfigMap. + type: string + required: + - domainID + type: object + launchContainers: description: Configurational parameters for containers that will be encapsulated within the ROS 2 workload StatefulSet. items: @@ -1318,80 +1395,6 @@ spec: - replicas type: object type: array - discoveryServerTemplate: - description: Discovery server configurational parameters. - properties: - cluster: - description: Cloud instance name that holds DiscoveryServer instance - with `Server` type. Should be empty if the type is `Server` - since it takes cloud instance's name automatically. Should be - set if the type is `Client`. - type: string - domainID: - description: ROS domain ID for robot. See https://docs.ros.org/en/foxy/Concepts/About-Domain-ID.html. - maximum: 101 - minimum: 0 - type: integer - hostname: - description: If instance type is `Server`, it can be an arbitrary - 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 - reference: - description: 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. - properties: - apiVersion: - description: API version of the referent. - type: string - fieldPath: - description: 'If referring to a piece of an object instead - of an entire object, this string should contain a valid - JSON/Go field access statement, such as desiredState.manifest.containers[2]. - For example, if the object reference is to a container within - a pod, this would take on a value like: "spec.containers{name}" - (where "name" refers to the name of the container that triggered - the event) or if no container name is specified "spec.containers[2]" - (container with index 2 in this pod). This syntax is chosen - only to have some well-defined way of referencing a part - of an object. TODO: this design is not final and this field - is subject to change in the future.' - type: string - kind: - description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - namespace: - description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' - type: string - resourceVersion: - description: 'Specific resourceVersion to which this reference - is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' - type: string - uid: - description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' - type: string - type: object - x-kubernetes-map-type: atomic - subdomain: - description: If instance type is `Server`, it can be an arbitrary - value. If instance type is `Client`, it should be the same with - Server's subdomain. Used for getting Server's IP over DNS. - type: string - type: - description: Instance type can be either `Server` or `Client`. - If `Server`, instance creates discovery server resources and - workloads. Other `Client` instances can connect to the `Server` - instance. If `Client`, instance tries to connect a `Server` - instance and hold `Server` configuration in a ConfigMap. - type: string - required: - - domainID - type: object ros2BridgeTemplate: description: ROS 2 Bridge configurational parameters. properties: