Skip to content

Commit e58eb82

Browse files
committed
Deprecate addon fields in v1alpha1
Signed-off-by: Qing Hao <[email protected]>
1 parent 3b7c6be commit e58eb82

4 files changed

+6
-0
lines changed

addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ spec:
376376
type: object
377377
supportedConfigs:
378378
description: |-
379+
Deprecated: Wil be removed and replaced with DefaultConfigs in v1beta1.
379380
supportedConfigs is a list of configuration types supported by add-on.
380381
An empty list means the add-on does not require configurations.
381382
The default is an empty list

addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ spec:
8686
installNamespace:
8787
default: open-cluster-management-agent-addon
8888
description: |-
89+
Deprecated: Use AddonDeploymentConfig instead.
8990
installNamespace is the namespace on the managed cluster to install the addon agent.
9091
If it is not set, open-cluster-management-agent-addon namespace is used to install the addon agent.
9192
maxLength: 63
@@ -286,6 +287,7 @@ spec:
286287
type: string
287288
registrations:
288289
description: |-
290+
Deprecated
289291
registrations is the configurations for the addon agent to register to hub. It should be set by each addon controller
290292
on hub to define how the addon agent on managedcluster is registered. With the registration defined,
291293
The addon agent can access to kube apiserver with kube style API or other endpoints on hub cluster with client

addon/v1alpha1/types_clustermanagementaddon.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type ClusterManagementAddOnSpec struct {
4545
// +optional
4646
AddOnConfiguration ConfigCoordinates `json:"addOnConfiguration,omitempty"`
4747

48+
// Deprecated: Wil be removed and replaced with DefaultConfigs in v1beta1.
4849
// supportedConfigs is a list of configuration types supported by add-on.
4950
// An empty list means the add-on does not require configurations.
5051
// The default is an empty list

addon/v1alpha1/types_managedclusteraddon.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type ManagedClusterAddOn struct {
3434
// ManagedClusterAddOnSpec defines the install configuration of
3535
// an addon agent on managed cluster.
3636
type ManagedClusterAddOnSpec struct {
37+
// Deprecated: Use AddonDeploymentConfig instead.
3738
// installNamespace is the namespace on the managed cluster to install the addon agent.
3839
// If it is not set, open-cluster-management-agent-addon namespace is used to install the addon agent.
3940
// +optional
@@ -141,6 +142,7 @@ type ManagedClusterAddOnStatus struct {
141142
// +optional
142143
Namespace string `json:"namespace,omitempty"`
143144

145+
// Deprecated
144146
// registrations is the configurations for the addon agent to register to hub. It should be set by each addon controller
145147
// on hub to define how the addon agent on managedcluster is registered. With the registration defined,
146148
// The addon agent can access to kube apiserver with kube style API or other endpoints on hub cluster with client

0 commit comments

Comments
 (0)