fix: update karmada operator crd karmadaDescheduler field

Signed-off-by: coderth <coderth@outlook.com>
This commit is contained in:
coderth 2023-06-27 14:53:57 +08:00
parent fb317bd905
commit 48265e89e1
3 changed files with 227 additions and 227 deletions

View File

@ -46,111 +46,6 @@ spec:
description: Components define all of karmada components. not all
of these components need to be installed.
properties:
KarmadaDescheduler:
description: KarmadaDescheduler holds settings to karmada-descheduler
component of the karmada.
properties:
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map
stored with a resource that may be set by external tools
to store and retrieve arbitrary metadata. They are not queryable
and should be preserved when modifying objects. More info:
http://kubernetes.io/docs/user-guide/annotations'
type: object
extraArgs:
additionalProperties:
type: string
description: "ExtraArgs is an extra set of flags to pass to
the karmada-descheduler component or override. A key in
this map is the flag name as it appears on the command line
except without leading dash(es). \n Note: This is a temporary
solution to allow for the configuration of the karmada-descheduler
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this field maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/descheduler/app/options/options.go
for details."
type: object
imageRepository:
description: ImageRepository sets the container registry to
pull images from. if not set, the ImageRepository defined
in KarmadaSpec will be used instead.
type: string
imageTag:
description: ImageTag allows to specify a tag for the image.
In case this value is set, operator does not change automatically
the version of the above components during upgrades.
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used
to organize and categorize (scope and select) objects. May
match selectors of replication controllers and services.
More info: http://kubernetes.io/docs/user-guide/labels'
type: object
replicas:
description: Number of desired pods. This is a pointer to
distinguish between explicit zero and not specified. Defaults
to 1.
format: int32
type: integer
resources:
description: 'Compute Resources required by this component.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
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."
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.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
etcd:
description: Etcd holds configuration for etcd.
properties:
@ -982,6 +877,111 @@ spec:
type: object
type: object
type: object
karmadaDescheduler:
description: KarmadaDescheduler holds settings to karmada-descheduler
component of the karmada.
properties:
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map
stored with a resource that may be set by external tools
to store and retrieve arbitrary metadata. They are not queryable
and should be preserved when modifying objects. More info:
http://kubernetes.io/docs/user-guide/annotations'
type: object
extraArgs:
additionalProperties:
type: string
description: "ExtraArgs is an extra set of flags to pass to
the karmada-descheduler component or override. A key in
this map is the flag name as it appears on the command line
except without leading dash(es). \n Note: This is a temporary
solution to allow for the configuration of the karmada-descheduler
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this field maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/descheduler/app/options/options.go
for details."
type: object
imageRepository:
description: ImageRepository sets the container registry to
pull images from. if not set, the ImageRepository defined
in KarmadaSpec will be used instead.
type: string
imageTag:
description: ImageTag allows to specify a tag for the image.
In case this value is set, operator does not change automatically
the version of the above components during upgrades.
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used
to organize and categorize (scope and select) objects. May
match selectors of replication controllers and services.
More info: http://kubernetes.io/docs/user-guide/labels'
type: object
replicas:
description: Number of desired pods. This is a pointer to
distinguish between explicit zero and not specified. Defaults
to 1.
format: int32
type: integer
resources:
description: 'Compute Resources required by this component.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
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."
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.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
karmadaScheduler:
description: KarmadaScheduler holds settings to karmada-scheduler
component of the karmada.

View File

@ -46,111 +46,6 @@ spec:
description: Components define all of karmada components. not all
of these components need to be installed.
properties:
KarmadaDescheduler:
description: KarmadaDescheduler holds settings to karmada-descheduler
component of the karmada.
properties:
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map
stored with a resource that may be set by external tools
to store and retrieve arbitrary metadata. They are not queryable
and should be preserved when modifying objects. More info:
http://kubernetes.io/docs/user-guide/annotations'
type: object
extraArgs:
additionalProperties:
type: string
description: "ExtraArgs is an extra set of flags to pass to
the karmada-descheduler component or override. A key in
this map is the flag name as it appears on the command line
except without leading dash(es). \n Note: This is a temporary
solution to allow for the configuration of the karmada-descheduler
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this feild maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/descheduler/app/options/options.go
for details."
type: object
imageRepository:
description: ImageRepository sets the container registry to
pull images from. if not set, the ImageRepository defined
in KarmadaSpec will be used instead.
type: string
imageTag:
description: ImageTag allows to specify a tag for the image.
In case this value is set, operator does not change automatically
the version of the above components during upgrades.
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used
to organize and categorize (scope and select) objects. May
match selectors of replication controllers and services.
More info: http://kubernetes.io/docs/user-guide/labels'
type: object
replicas:
description: Number of desired pods. This is a pointer to
distinguish between explicit zero and not specified. Defaults
to 1.
format: int32
type: integer
resources:
description: 'Compute Resources required by this component.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
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."
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.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
etcd:
description: Etcd holds configuration for etcd.
properties:
@ -290,7 +185,7 @@ spec:
type: array
volumeData:
description: 'VolumeData describes the settings of etcd
data store. We will support 3 modes: emtydir, hostPath,
data store. We will support 3 modes: emptyDir, hostPath,
PVC. default by hostPath.'
properties:
emptyDir:
@ -639,7 +534,7 @@ spec:
to allow for the configuration of the kube-apiserver component.
In the future, we will provide a more structured way to
configure the component. Once that is done, this field will
be discouraged to be used. Incorrect settings on this feild
be discouraged to be used. Incorrect settings on this field
maybe lead to the corresponding component in an unhealthy
state. Before you do it, please confirm that you understand
the risks of this configuration. \n For supported flags,
@ -732,7 +627,7 @@ spec:
type: string
serviceType:
description: ServiceType represents the service type of karmada
apiserver. it is Nodeport by default.
apiserver. it is NodePort by default.
type: string
type: object
karmadaAggregatedAPIServer:
@ -765,7 +660,7 @@ spec:
the karmada-aggregated-apiserver component. In the future,
we will provide a more structured way to configure the component.
Once that is done, this field will be discouraged to be
used. Incorrect settings on this feild maybe lead to the
used. Incorrect settings on this field maybe lead to the
corresponding component in an unhealthy state. Before you
do it, please confirm that you understand the risks of this
configuration. \n For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/aggregated-apiserver/app/options/options.go
@ -891,7 +786,7 @@ spec:
karmada-controller-manager component. In the future, we
will provide a more structured way to configure the component.
Once that is done, this field will be discouraged to be
used. Incorrect settings on this feild maybe lead to the
used. Incorrect settings on this field maybe lead to the
corresponding component in an unhealthy state. Before you
do it, please confirm that you understand the risks of this
configuration. \n For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/controller-manager/app/options/options.go
@ -982,6 +877,111 @@ spec:
type: object
type: object
type: object
karmadaDescheduler:
description: KarmadaDescheduler holds settings to karmada-descheduler
component of the karmada.
properties:
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map
stored with a resource that may be set by external tools
to store and retrieve arbitrary metadata. They are not queryable
and should be preserved when modifying objects. More info:
http://kubernetes.io/docs/user-guide/annotations'
type: object
extraArgs:
additionalProperties:
type: string
description: "ExtraArgs is an extra set of flags to pass to
the karmada-descheduler component or override. A key in
this map is the flag name as it appears on the command line
except without leading dash(es). \n Note: This is a temporary
solution to allow for the configuration of the karmada-descheduler
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this field maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/descheduler/app/options/options.go
for details."
type: object
imageRepository:
description: ImageRepository sets the container registry to
pull images from. if not set, the ImageRepository defined
in KarmadaSpec will be used instead.
type: string
imageTag:
description: ImageTag allows to specify a tag for the image.
In case this value is set, operator does not change automatically
the version of the above components during upgrades.
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used
to organize and categorize (scope and select) objects. May
match selectors of replication controllers and services.
More info: http://kubernetes.io/docs/user-guide/labels'
type: object
replicas:
description: Number of desired pods. This is a pointer to
distinguish between explicit zero and not specified. Defaults
to 1.
format: int32
type: integer
resources:
description: 'Compute Resources required by this component.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
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."
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.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
karmadaScheduler:
description: KarmadaScheduler holds settings to karmada-scheduler
component of the karmada.
@ -1006,7 +1006,7 @@ spec:
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this feild maybe lead to the corresponding component
on this field maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/scheduler/app/options/options.go
@ -1118,7 +1118,7 @@ spec:
component. In the future, we will provide a more structured
way to configure the component. Once that is done, this
field will be discouraged to be used. Incorrect settings
on this feild maybe lead to the corresponding component
on this field maybe lead to the corresponding component
in an unhealthy state. Before you do it, please confirm
that you understand the risks of this configuration. \n
For supported flags, please see https://github.com/karmada-io/karmada/blob/master/cmd/descheduler/app/options/options.go
@ -1200,8 +1200,8 @@ spec:
type: object
type: object
karmadaWebhook:
description: KarmadaWebhook holds settings to karmada-webook component
of the karmada.
description: KarmadaWebhook holds settings to karmada-webhook
component of the karmada.
properties:
annotations:
additionalProperties:
@ -1222,7 +1222,7 @@ spec:
to allow for the configuration of the karmada-webhook component.
In the future, we will provide a more structured way to
configure the component. Once that is done, this field will
be discouraged to be used. Incorrect settings on this feild
be discouraged to be used. Incorrect settings on this field
maybe lead to the corresponding component in an unhealthy
state. Before you do it, please confirm that you understand
the risks of this configuration. \n For supported flags,
@ -1349,8 +1349,8 @@ spec:
See https://karmada.io/docs/administrator/configuration/configure-controllers#kubernetes-controllers
\n Others are disabled by default. If you want to enable
or disable other controllers, you have to explicitly specify
all the controllers that kube-controller-manager shoud enable
at startup phase."
all the controllers that kube-controller-manager should
enable at startup phase."
items:
type: string
type: array
@ -1365,7 +1365,7 @@ spec:
kube-controller-manager component. In the future, we will
provide a more structured way to configure the component.
Once that is done, this field will be discouraged to be
used. Incorrect settings on this feild maybe lead to the
used. Incorrect settings on this field maybe lead to the
corresponding component in an unhealthy state. Before you
do it, please confirm that you understand the risks of this
configuration. \n For supported flags, please see https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/
@ -1457,7 +1457,7 @@ spec:
additionalProperties:
type: boolean
description: 'FeatureGates enabled by the user. - Failover: https://karmada.io/docs/userguide/failover/#failover
- GragscefulEviction: https://karmada.io/docs/userguide/failover/#graceful-eviction-feature
- GracefulEviction: https://karmada.io/docs/userguide/failover/#graceful-eviction-feature
- PropagateDeps: https://karmada.io/docs/userguide/scheduling/propagate-dependencies
- CustomizedClusterResourceModeling: https://karmada.io/docs/userguide/scheduling/cluster-resources#start-to-use-cluster-resource-models
More info: https://github.com/karmada-io/karmada/blob/master/pkg/features/features.go'
@ -1583,10 +1583,10 @@ spec:
type: object
type: array
karmadaVersion:
description: KarmadaVersion represente the karmada version.
description: KarmadaVersion represent the karmada version.
type: string
kubernetesVersion:
description: KubernetesVersion represente the karmada-apiserver version.
description: KubernetesVersion represent the karmada-apiserver version.
type: string
observedGeneration:
description: ObservedGeneration is the last observed generation.

View File

@ -118,7 +118,7 @@ type KarmadaComponents struct {
// KarmadaDescheduler holds settings to karmada-descheduler component of the karmada.
// +optional
KarmadaDescheduler *KarmadaDescheduler `json:"KarmadaDescheduler,omitempty"`
KarmadaDescheduler *KarmadaDescheduler `json:"karmadaDescheduler,omitempty"`
// KarmadaSearch holds settings to karmada search component of the karmada.
// +optional