diff --git a/go.mod b/go.mod index bebf459519..720c11a19a 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/openshift/client-go v0.0.1 k8s.io/apimachinery v0.35.5 k8s.io/client-go v1.5.2 - open-cluster-management.io/api v0.15.0 + open-cluster-management.io/api v1.3.0 sigs.k8s.io/controller-runtime v0.23.3 ) @@ -99,7 +99,6 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/nxadm/tail v1.4.11 // indirect - github.com/openshift/api v0.0.1 github.com/openshift/library-go v0.0.0-20260609093731-5637f8b25b0d github.com/openshift/machine-config-operator v0.0.1-0.20260410020757-449e78f7ec94 github.com/pborman/uuid v1.2.1 diff --git a/go.sum b/go.sum index 33a9f740da..259095e04a 100644 --- a/go.sum +++ b/go.sum @@ -580,8 +580,8 @@ k8s.io/pod-security-admission v0.35.5 h1:R+FbF2OyANMBYkMFtavHyNVOE82VeewRtLXGdAD k8s.io/pod-security-admission v0.35.5/go.mod h1:36iCuuOBK1re5qU1/WGu3JsOytNRUWq/RhdqAG1gU+E= k8s.io/utils v0.0.0-20260507154919-ff6756f316d2 h1:wU4tMEhLGgIbLvXQb1cfN+EcM0wf7zC6CPF+C79jroc= k8s.io/utils v0.0.0-20260507154919-ff6756f316d2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk= -open-cluster-management.io/api v0.15.0 h1:lRee1KOlGHZb2scTA7ff9E9Fxt2hJc7jpkHnaCbvkOU= -open-cluster-management.io/api v0.15.0/go.mod h1:9erZEWEn4bEqh0nIX2wA7f/s3KCuFycQdBrPrRzi0QM= +open-cluster-management.io/api v1.3.0 h1:Q3miH38BE3N5+PesHQ0kcFi5nhX5350m7OJWapZcVqY= +open-cluster-management.io/api v1.3.0/go.mod h1:t0DsBv4gjIo9ojd7GYfA2tcEMpNf0h5Ix68pFDXwNSk= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= sigs.k8s.io/controller-runtime v0.23.3 h1:VjB/vhoPoA9l1kEKZHBMnQF33tdCLQKJtydy4iqwZ80= diff --git a/vendor/modules.txt b/vendor/modules.txt index fa080ae6be..25e8652517 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1645,8 +1645,8 @@ k8s.io/utils/lru k8s.io/utils/net k8s.io/utils/ptr k8s.io/utils/trace -# open-cluster-management.io/api v0.15.0 -## explicit; go 1.22.0 +# open-cluster-management.io/api v1.3.0 +## explicit; go 1.25.0 open-cluster-management.io/api/cluster/v1alpha1 # sigs.k8s.io/controller-runtime v0.23.3 ## explicit; go 1.25.0 diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml b/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml index 4359dcadb8..73647d1257 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml @@ -22,7 +22,6 @@ spec: 2. clusterset.k8s.io, it contains an identifier that relates the cluster to the ClusterSet in which it belongs. - ClusterClaims created on a managed cluster will be collected and saved into the status of the corresponding ManagedCluster on hub. properties: @@ -47,7 +46,7 @@ spec: description: Spec defines the attributes of the ClusterClaim. properties: value: - description: Value is a claim-dependent string + description: value is a claim-dependent string maxLength: 1024 minLength: 1 type: string diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_05_clusters.open-cluster-management.io_addonplacementscores.crd.yaml b/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_05_clusters.open-cluster-management.io_addonplacementscores.crd.yaml index 24d2d6c01d..56a1fa7944 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_05_clusters.open-cluster-management.io_addonplacementscores.crd.yaml +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_05_clusters.open-cluster-management.io_addonplacementscores.crd.yaml @@ -43,16 +43,8 @@ spec: description: Conditions contain the different condition statuses for this AddOnPlacementScore. items: - description: "Condition contains details for one aspect of the current - state of this API Resource.\n---\nThis struct is intended for - direct use as an array at the field path .status.conditions. For - example,\n\n\n\ttype FooStatus struct{\n\t // Represents the - observations of a foo's current state.\n\t // Known .status.conditions.type - are: \"Available\", \"Progressing\", and \"Degraded\"\n\t // - +patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t - \ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\" - patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t - \ // other fields\n\t}" + description: Condition contains details for one aspect of the current + state of this API Resource. properties: lastTransitionTime: description: |- @@ -93,12 +85,7 @@ spec: - Unknown type: string type: - description: |- - type of condition in CamelCase or in foo.example.com/CamelCase. - --- - Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be - useful (see .node.status.conditions), the ability to deconflict is important. - The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) + description: type of condition in CamelCase or in foo.example.com/CamelCase. maxLength: 316 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ type: string @@ -121,10 +108,10 @@ spec: value. properties: name: - description: Name is the name of the score + description: name is the name of the score type: string value: - description: Value is the value of the score. The score range + description: value is the value of the score. The score range is from -100 to 100. format: int32 maximum: 100 @@ -140,7 +127,7 @@ spec: x-kubernetes-list-type: map validUntil: description: |- - ValidUntil defines the valid time of the scores. + validUntil defines the valid time of the scores. After this time, the scores are considered to be invalid by placement. nil means never expire. The controller owning this resource should keep the scores up-to-date. format: date-time diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/doc.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/doc.go index 93f37581ca..0e7df92e53 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/doc.go +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/doc.go @@ -1,7 +1,8 @@ +// Copyright Contributors to the Open Cluster Management project // Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group -// +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true +// +k8s:deepcopy-gen=package,register +// +k8s:openapi-model-package=io.open-cluster-management.api.cluster.v1alpha1 // +kubebuilder:validation:Optional // +groupName=cluster.open-cluster-management.io package v1alpha1 diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/register.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/register.go deleted file mode 100644 index 36b73ce2ff..0000000000 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/register.go +++ /dev/null @@ -1,40 +0,0 @@ -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -var ( - GroupName = "cluster.open-cluster-management.io" - GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - schemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // Install is a function which adds this version to a scheme - Install = schemeBuilder.AddToScheme - - // SchemeGroupVersion generated code relies on this name - // Deprecated - SchemeGroupVersion = GroupVersion - // AddToScheme exists solely to keep the old generators creating valid code - // DEPRECATED - AddToScheme = schemeBuilder.AddToScheme -) - -// Resource generated code relies on this being here, but it logically belongs to the group -// DEPRECATED -func Resource(resource string) schema.GroupResource { - return schema.GroupResource{Group: GroupName, Resource: resource} -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(GroupVersion, - &AddOnPlacementScore{}, - &AddOnPlacementScoreList{}, - &ClusterClaim{}, - &ClusterClaimList{}, - ) - metav1.AddToGroupVersion(scheme, GroupVersion) - return nil -} diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types.go index 6cb57bc3b4..cca75cc3b3 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types.go +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types.go @@ -1,3 +1,4 @@ +// Copyright Contributors to the Open Cluster Management project package v1alpha1 import ( @@ -26,7 +27,7 @@ type ClusterClaim struct { } type ClusterClaimSpec struct { - // Value is a claim-dependent string + // value is a claim-dependent string // +kubebuilder:validation:MaxLength=1024 // +kubebuilder:validation:MinLength=1 Value string `json:"value,omitempty"` diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_addonplacementscore.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_addonplacementscore.go index 1ce73580bd..61da9eca69 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_addonplacementscore.go +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_addonplacementscore.go @@ -1,3 +1,4 @@ +// Copyright Contributors to the Open Cluster Management project package v1alpha1 import ( @@ -23,8 +24,6 @@ type AddOnPlacementScore struct { // AddOnPlacementScoreStatus represents the current status of AddOnPlacementScore. type AddOnPlacementScoreStatus struct { // Conditions contain the different condition statuses for this AddOnPlacementScore. - // +patchMergeKey=type - // +patchStrategy=merge // +listType=map // +listMapKey=type // +optional @@ -36,7 +35,7 @@ type AddOnPlacementScoreStatus struct { // +optional Scores []AddOnPlacementScoreItem `json:"scores,omitempty"` - // ValidUntil defines the valid time of the scores. + // validUntil defines the valid time of the scores. // After this time, the scores are considered to be invalid by placement. nil means never expire. // The controller owning this resource should keep the scores up-to-date. // +kubebuilder:validation:Type=string @@ -47,12 +46,12 @@ type AddOnPlacementScoreStatus struct { // AddOnPlacementScoreItem represents the score name and value. type AddOnPlacementScoreItem struct { - // Name is the name of the score + // name is the name of the score // +kubebuilder:validation:Required // +required Name string `json:"name"` - // Value is the value of the score. The score range is from -100 to 100. + // value is the value of the score. The score range is from -100 to 100. // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum:=-100 // +kubebuilder:validation:Maximum:=100 diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_rolloutstrategy.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_rolloutstrategy.go index 2c863bb50e..b61ba11938 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_rolloutstrategy.go +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/types_rolloutstrategy.go @@ -1,3 +1,4 @@ +// Copyright Contributors to the Open Cluster Management project package v1alpha1 import ( @@ -37,15 +38,15 @@ type RolloutStrategy struct { // +optional Type RolloutType `json:"type,omitempty"` - // All defines required fields for RolloutStrategy type All + // all defines required fields for RolloutStrategy type All // +optional All *RolloutAll `json:"all,omitempty"` - // Progressive defines required fields for RolloutStrategy type Progressive + // progressive defines required fields for RolloutStrategy type Progressive // +optional Progressive *RolloutProgressive `json:"progressive,omitempty"` - // ProgressivePerGroup defines required fields for RolloutStrategy type ProgressivePerGroup + // progressivePerGroup defines required fields for RolloutStrategy type ProgressivePerGroup // +optional ProgressivePerGroup *RolloutProgressivePerGroup `json:"progressivePerGroup,omitempty"` } @@ -94,12 +95,12 @@ type RolloutConfig struct { // MandatoryDecisionGroup set the decision group name or group index. // GroupName is considered first to select the decisionGroups then GroupIndex. type MandatoryDecisionGroup struct { - // GroupName of the decision group should match the placementDecisions label value with label key + // groupName of the decision group should match the placementDecisions label value with label key // cluster.open-cluster-management.io/decision-group-name // +optional GroupName string `json:"groupName,omitempty"` - // GroupIndex of the decision group should match the placementDecisions label value with label key + // groupIndex of the decision group should match the placementDecisions label value with label key // cluster.open-cluster-management.io/decision-group-index // +optional GroupIndex int32 `json:"groupIndex,omitempty"` @@ -138,7 +139,7 @@ type RolloutProgressive struct { // +optional MandatoryDecisionGroups `json:",inline"` - // MaxConcurrency is the max number of clusters to deploy workload concurrently. The default value + // maxConcurrency is the max number of clusters to deploy workload concurrently. The default value // for MaxConcurrency is determined from the clustersPerDecisionGroup defined in the // placement->DecisionStrategy. // +kubebuilder:validation:Pattern="^((100|[0-9]{1,2})%|[0-9]+)$" diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.deepcopy.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.deepcopy.go index e40f74e4d2..4c420a9e3c 100644 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.deepcopy.go @@ -1,6 +1,7 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated +// Copyright Contributors to the Open Cluster Management project // Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.model_name.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.model_name.go new file mode 100644 index 0000000000..3bd2039516 --- /dev/null +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.model_name.go @@ -0,0 +1,77 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Copyright Contributors to the Open Cluster Management project +// Code generated by openapi-gen. DO NOT EDIT. + +package v1alpha1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AddOnPlacementScore) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.AddOnPlacementScore" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AddOnPlacementScoreItem) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.AddOnPlacementScoreItem" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AddOnPlacementScoreList) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.AddOnPlacementScoreList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AddOnPlacementScoreStatus) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.AddOnPlacementScoreStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterClaim) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.ClusterClaim" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterClaimList) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.ClusterClaimList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterClaimSpec) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.ClusterClaimSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in MandatoryDecisionGroup) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.MandatoryDecisionGroup" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in MandatoryDecisionGroups) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.MandatoryDecisionGroups" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RolloutAll) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.RolloutAll" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RolloutConfig) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.RolloutConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RolloutProgressive) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.RolloutProgressive" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RolloutProgressivePerGroup) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.RolloutProgressivePerGroup" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RolloutStrategy) OpenAPIModelName() string { + return "io.open-cluster-management.api.cluster.v1alpha1.RolloutStrategy" +} diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.register.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.register.go new file mode 100644 index 0000000000..c7dc35a5b8 --- /dev/null +++ b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.register.go @@ -0,0 +1,58 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Copyright Contributors to the Open Cluster Management project +// Code generated by register-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" +) + +// GroupName specifies the group name used to register the objects. +const GroupName = "cluster.open-cluster-management.io" + +// GroupVersion specifies the group and the version used to register the objects. +var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"} + +// SchemeGroupVersion is group version used to register these objects +// +// Deprecated: use GroupVersion instead. +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +var ( + // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. + SchemeBuilder runtime.SchemeBuilder + localSchemeBuilder = &SchemeBuilder + // Deprecated: use Install instead + AddToScheme = localSchemeBuilder.AddToScheme + Install = localSchemeBuilder.AddToScheme +) + +func init() { + // We only register manually written functions here. The registration of the + // generated functions takes place in the generated files. The separation + // makes the code compile even when the generated files are missing. + localSchemeBuilder.Register(addKnownTypes) +} + +// Adds the list of known types to Scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &AddOnPlacementScore{}, + &AddOnPlacementScoreList{}, + &ClusterClaim{}, + &ClusterClaimList{}, + ) + // AddToGroupVersion allows the serialization of client types like ListOptions. + v1.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +} diff --git a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.swagger_doc_generated.go b/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.swagger_doc_generated.go deleted file mode 100644 index 64c51d2466..0000000000 --- a/vendor/open-cluster-management.io/api/cluster/v1alpha1/zz_generated.swagger_doc_generated.go +++ /dev/null @@ -1,147 +0,0 @@ -package v1alpha1 - -// This file contains a collection of methods that can be used from go-restful to -// generate Swagger API documentation for its models. Please read this PR for more -// information on the implementation: https://github.com/emicklei/go-restful/pull/215 -// -// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if -// they are on one line! For multiple line or blocks that you want to ignore use ---. -// Any context after a --- is ignored. -// -// Those methods can be generated by using hack/update-swagger-docs.sh - -// AUTO-GENERATED FUNCTIONS START HERE -var map_ClusterClaim = map[string]string{ - "": "ClusterClaim represents cluster information that a managed cluster claims ClusterClaims with well known names include,\n 1. id.k8s.io, it contains a unique identifier for the cluster.\n 2. clusterset.k8s.io, it contains an identifier that relates the cluster\n to the ClusterSet in which it belongs.\n\nClusterClaims created on a managed cluster will be collected and saved into the status of the corresponding ManagedCluster on hub.", - "spec": "Spec defines the attributes of the ClusterClaim.", -} - -func (ClusterClaim) SwaggerDoc() map[string]string { - return map_ClusterClaim -} - -var map_ClusterClaimList = map[string]string{ - "": "ClusterClaimList is a collection of ClusterClaim.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "items": "Items is a list of ClusterClaim.", -} - -func (ClusterClaimList) SwaggerDoc() map[string]string { - return map_ClusterClaimList -} - -var map_ClusterClaimSpec = map[string]string{ - "value": "Value is a claim-dependent string", -} - -func (ClusterClaimSpec) SwaggerDoc() map[string]string { - return map_ClusterClaimSpec -} - -var map_AddOnPlacementScore = map[string]string{ - "": "AddOnPlacementScore represents a bundle of scores of one managed cluster, which could be used by placement. AddOnPlacementScore is a namespace scoped resource. The namespace of the resource is the cluster namespace.", - "status": "Status represents the status of the AddOnPlacementScore.", -} - -func (AddOnPlacementScore) SwaggerDoc() map[string]string { - return map_AddOnPlacementScore -} - -var map_AddOnPlacementScoreItem = map[string]string{ - "": "AddOnPlacementScoreItem represents the score name and value.", - "name": "Name is the name of the score", - "value": "Value is the value of the score. The score range is from -100 to 100.", -} - -func (AddOnPlacementScoreItem) SwaggerDoc() map[string]string { - return map_AddOnPlacementScoreItem -} - -var map_AddOnPlacementScoreList = map[string]string{ - "": "AddOnPlacementScoreList is a collection of AddOnPlacementScore.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "items": "Items is a list of AddOnPlacementScore", -} - -func (AddOnPlacementScoreList) SwaggerDoc() map[string]string { - return map_AddOnPlacementScoreList -} - -var map_AddOnPlacementScoreStatus = map[string]string{ - "": "AddOnPlacementScoreStatus represents the current status of AddOnPlacementScore.", - "conditions": "Conditions contain the different condition statuses for this AddOnPlacementScore.", - "scores": "Scores contain a list of score name and value of this managed cluster.", - "validUntil": "ValidUntil defines the valid time of the scores. After this time, the scores are considered to be invalid by placement. nil means never expire. The controller owning this resource should keep the scores up-to-date.", -} - -func (AddOnPlacementScoreStatus) SwaggerDoc() map[string]string { - return map_AddOnPlacementScoreStatus -} - -var map_MandatoryDecisionGroup = map[string]string{ - "": "MandatoryDecisionGroup set the decision group name or group index. GroupName is considered first to select the decisionGroups then GroupIndex.", - "groupName": "GroupName of the decision group should match the placementDecisions label value with label key cluster.open-cluster-management.io/decision-group-name", - "groupIndex": "GroupIndex of the decision group should match the placementDecisions label value with label key cluster.open-cluster-management.io/decision-group-index", -} - -func (MandatoryDecisionGroup) SwaggerDoc() map[string]string { - return map_MandatoryDecisionGroup -} - -var map_MandatoryDecisionGroups = map[string]string{ - "": "MandatoryDecisionGroups", - "mandatoryDecisionGroups": "List of the decision groups names or indexes to apply the workload first and fail if workload did not reach successful state. GroupName or GroupIndex must match with the decisionGroups defined in the placement's decisionStrategy", -} - -func (MandatoryDecisionGroups) SwaggerDoc() map[string]string { - return map_MandatoryDecisionGroups -} - -var map_RolloutAll = map[string]string{ - "": "RolloutAll is a RolloutStrategy Type", -} - -func (RolloutAll) SwaggerDoc() map[string]string { - return map_RolloutAll -} - -var map_RolloutConfig = map[string]string{ - "": "Timeout to consider while applying the workload.", - "minSuccessTime": "MinSuccessTime is a \"soak\" time. In other words, the minimum amount of time the workload applier controller will wait from the start of each rollout before proceeding (assuming a successful state has been reached and MaxFailures wasn't breached). MinSuccessTime is only considered for rollout types Progressive and ProgressivePerGroup. The default value is 0 meaning the workload applier proceeds immediately after a successful state is reached. MinSuccessTime must be defined in [0-9h]|[0-9m]|[0-9s] format examples; 2h , 90m , 360s", - "progressDeadline": "ProgressDeadline defines how long workload applier controller will wait for the workload to reach a successful state in the cluster. If the workload does not reach a successful state after ProgressDeadline, will stop waiting and workload will be treated as \"timeout\" and be counted into MaxFailures. Once the MaxFailures is breached, the rollout will stop. ProgressDeadline default value is \"None\", meaning the workload applier will wait for a successful state indefinitely. ProgressDeadline must be defined in [0-9h]|[0-9m]|[0-9s] format examples; 2h , 90m , 360s", - "maxFailures": "MaxFailures is a percentage or number of clusters in the current rollout that can fail before proceeding to the next rollout. Fail means the cluster has a failed status or timeout status (does not reach successful status after ProgressDeadline). Once the MaxFailures is breached, the rollout will stop. MaxFailures is only considered for rollout types Progressive and ProgressivePerGroup. For Progressive, this is considered over the total number of clusters. For ProgressivePerGroup, this is considered according to the size of the current group. For both Progressive and ProgressivePerGroup, the MaxFailures does not apply for MandatoryDecisionGroups, which tolerate no failures. Default is that no failures are tolerated.", -} - -func (RolloutConfig) SwaggerDoc() map[string]string { - return map_RolloutConfig -} - -var map_RolloutProgressive = map[string]string{ - "": "RolloutProgressive is a RolloutStrategy Type", - "maxConcurrency": "MaxConcurrency is the max number of clusters to deploy workload concurrently. The default value for MaxConcurrency is determined from the clustersPerDecisionGroup defined in the placement->DecisionStrategy.", -} - -func (RolloutProgressive) SwaggerDoc() map[string]string { - return map_RolloutProgressive -} - -var map_RolloutProgressivePerGroup = map[string]string{ - "": "RolloutProgressivePerGroup is a RolloutStrategy Type", -} - -func (RolloutProgressivePerGroup) SwaggerDoc() map[string]string { - return map_RolloutProgressivePerGroup -} - -var map_RolloutStrategy = map[string]string{ - "": "Rollout strategy to apply workload to the selected clusters by Placement and DecisionStrategy.", - "all": "All defines required fields for RolloutStrategy type All", - "progressive": "Progressive defines required fields for RolloutStrategy type Progressive", - "progressivePerGroup": "ProgressivePerGroup defines required fields for RolloutStrategy type ProgressivePerGroup", -} - -func (RolloutStrategy) SwaggerDoc() map[string]string { - return map_RolloutStrategy -} - -// AUTO-GENERATED FUNCTIONS END HERE