Skip to content

Commit

Permalink
add more resources from open-cluster-management-io/ocm
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Mar 28, 2024
1 parent 4b55080 commit a1198a8
Show file tree
Hide file tree
Showing 9 changed files with 202 additions and 340 deletions.
4 changes: 0 additions & 4 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,6 @@ Files: crd-catalog/open-cluster-management-io/ocm/*
Copyright: The open-cluster-management-io/ocm Authors
License: Apache-2.0

Files: crd-catalog/open-cluster-management-io/registration-operator/*
Copyright: The open-cluster-management-io/registration-operator Authors
License: Apache-2.0

Files: crd-catalog/open-feature/open-feature-operator/*
Copyright: The open-feature/open-feature-operator Authors
License: Apache-2.0
Expand Down
9 changes: 1 addition & 8 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2304,14 +2304,7 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
license: APACHE_V2,
urls: &[
"https://github.com/open-cluster-management-io/ocm/blob/main/deploy/cluster-manager/config/crds/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml",
],
},
UpstreamSource {
project_name: "open-cluster-management-io/registration-operator",
license: APACHE_V2,
urls: &[
"https://github.com/open-cluster-management-io/registration-operator/blob/main/deploy/cluster-manager/config/crds/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml",
"https://github.com/open-cluster-management-io/registration-operator/blob/main/deploy/klusterlet/config/crds/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml",
"https://github.com/open-cluster-management-io/ocm/blob/main/deploy/klusterlet/config/crds/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml",
],
},
UpstreamSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ spec:
description: "DeployOption contains the options of deploying a klusterlet"
properties:
mode:
description: "Mode can be Default or Hosted. It is Default mode if not specified In Default mode, all klusterlet related resources are deployed on the managed cluster. In Hosted mode, only crd and configurations are installed on the spoke/managed cluster. Controllers run in another cluster (defined as management-cluster) and connect to the mangaged cluster with the kubeconfig in secret of \"external-managed-kubeconfig\"(a kubeconfig of managed-cluster with cluster-admin permission). Note: Do not modify the Mode field once it's applied."
description: "Mode can be Default, Hosted, Singleton or SingletonHosted. It is Default mode if not specified In Default mode, all klusterlet related resources are deployed on the managed cluster. In Hosted mode, only crd and configurations are installed on the spoke/managed cluster. Controllers run in another cluster (defined as management-cluster) and connect to the mangaged cluster with the kubeconfig in secret of \"external-managed-kubeconfig\"(a kubeconfig of managed-cluster with cluster-admin permission). In Singleton mode, registration/work agent is started as a single deployment. In SingletonHosted mode, agent is started as a single deployment in hosted mode. Note: Do not modify the Mode field once it's applied."
type: "string"
type: "object"
externalServerURLs:
description: "ExternalServerURLs represents the a list of apiserver urls and ca bundles that is accessible externally If it is set empty, managed cluster has no externally accessible url that hub cluster can visit."
description: "ExternalServerURLs represents a list of apiserver urls and ca bundles that is accessible externally If it is set empty, managed cluster has no externally accessible url that hub cluster can visit."
items:
description: "ServerURL represents the apiserver url and ca bundle that is accessible externally"
properties:
Expand Down Expand Up @@ -69,6 +69,9 @@ spec:
- "hostname"
- "ip"
type: "object"
imagePullSpec:
description: "ImagePullSpec represents the desired image configuration of agent, it takes effect only when singleton mode is set. quay.io/open-cluster-management.io/registration-operator:latest will be used if unspecified"
type: "string"
namespace:
description: "Namespace is the namespace to deploy the agent on the managed cluster. The namespace must have a prefix of \"open-cluster-management-\", and if it is not set, the namespace of \"open-cluster-management-agent\" is used to deploy agent. In addition, the add-ons are deployed to the namespace of \"{Namespace}-addon\". In the Hosted mode, this namespace still exists on the managed cluster to contain necessary resources, like service accounts, roles and rolebindings, while the agent is deployed to the namespace with the same name as klusterlet on the management cluster."
maxLength: 63
Expand All @@ -83,7 +86,7 @@ spec:
description: "NodeSelector defines which Nodes the Pods are scheduled on. The default is an empty list."
type: "object"
tolerations:
description: "Tolerations is attached by pods to tolerate any taint that matches the triple <key,value,effect> using the matching operator <operator>. The default is an empty list."
description: "Tolerations are attached by pods to tolerate any taint that matches the triple <key,value,effect> using the matching operator <operator>. The default is an empty list."
items:
description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>."
properties:
Expand All @@ -106,13 +109,21 @@ spec:
type: "object"
type: "array"
type: "object"
priorityClassName:
description: "PriorityClassName is the name of the PriorityClass that will be used by the deployed klusterlet agent. It will be ignored when the PriorityClass/v1 API is not available on the managed cluster."
type: "string"
registrationConfiguration:
description: "RegistrationConfiguration contains the configuration of registration"
properties:
clientCertExpirationSeconds:
description: "clientCertExpirationSeconds represents the seconds of a client certificate to expire. If it is not set or 0, the default duration seconds will be set by the hub cluster. If the value is larger than the max signing duration seconds set on the hub cluster, the max signing duration seconds will be set."
format: "int32"
type: "integer"
clusterAnnotations:
additionalProperties:
type: "string"
description: "ClusterAnnotations is annotations with the reserve prefix \"agent.open-cluster-management.io\" set on ManagedCluster when creating only, other actors can update it afterwards."
type: "object"
featureGates:
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
items:
Expand All @@ -131,10 +142,68 @@ spec:
- "feature"
type: "object"
type: "array"
kubeAPIBurst:
default: 100
description: "KubeAPIBurst indicates the maximum burst of the throttle while talking with apiserver of hub cluster from the spoke cluster. If it is set empty, use the default value: 100"
format: "int32"
type: "integer"
kubeAPIQPS:
default: 50
description: "KubeAPIQPS indicates the maximum QPS while talking with apiserver of hub cluster from the spoke cluster. If it is set empty, use the default value: 50"
format: "int32"
type: "integer"
type: "object"
registrationImagePullSpec:
description: "RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified."
type: "string"
resourceRequirement:
description: "ResourceRequirement specify QoS classes of deployments managed by klusterlet. It applies to all the containers in the deployments."
properties:
resourceRequirements:
description: "ResourceRequirements defines resource requests and limits when Type is ResourceQosClassResourceRequirement"
properties:
claims:
description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. \n This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. \n This field is immutable. It can only be set for containers."
items:
description: "ResourceClaim references one entry in PodSpec.ResourceClaims."
properties:
name:
description: "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container."
type: "string"
required:
- "name"
type: "object"
type: "array"
x-kubernetes-list-map-keys:
- "name"
x-kubernetes-list-type: "map"
limits:
additionalProperties:
anyOf:
- type: "integer"
- type: "string"
pattern: "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$"
x-kubernetes-int-or-string: true
description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
type: "object"
requests:
additionalProperties:
anyOf:
- type: "integer"
- type: "string"
pattern: "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$"
x-kubernetes-int-or-string: true
description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
type: "object"
type: "object"
type:
default: "Default"
enum:
- "Default"
- "BestEffort"
- "ResourceRequirement"
type: "string"
type: "object"
workConfiguration:
description: "WorkConfiguration contains the configuration of work"
properties:
Expand All @@ -156,6 +225,16 @@ spec:
- "feature"
type: "object"
type: "array"
kubeAPIBurst:
default: 100
description: "KubeAPIBurst indicates the maximum burst of the throttle while talking with apiserver of hub cluster from the spoke cluster. If it is set empty, use the default value: 100"
format: "int32"
type: "integer"
kubeAPIQPS:
default: 50
description: "KubeAPIQPS indicates the maximum QPS while talking with apiserver of hub cluster from the spoke cluster. If it is set empty, use the default value: 50"
format: "int32"
type: "integer"
type: "object"
workImagePullSpec:
description: "WorkImagePullSpec represents the desired image configuration of work agent. quay.io/open-cluster-management.io/work:latest will be used if unspecified."
Expand Down

This file was deleted.

Loading

0 comments on commit a1198a8

Please sign in to comment.