Skip to content

Commit 6f26e16

Browse files
committed
Deprecate provider-id format v1
1 parent 0c2e3d3 commit 6f26e16

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
- /manager
2828
args:
2929
- "--leader-elect"
30-
- "--provider-id-fmt=${PROVIDER_ID_FORMAT:=v1}"
30+
- "--provider-id-fmt=${PROVIDER_ID_FORMAT:=v2}"
3131
- "--metrics-bind-addr=127.0.0.1:8080"
3232
- "--service-endpoint=${SERVICE_ENDPOINT:=none}"
3333
- "--v=${LOGLEVEL:=0}"

docs/book/src/topics/powervs/clusterclass-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Steps
33

44
- To deploy PowerVS workload cluster using [ClusterClass](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/index.html), create a cluster configuration from the [clusterclass-template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-simple-powervs-clusterclass.yaml)
5-
- The PowerVS cluster will use [external cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/). As a prerequisite set the `provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/5e7f80878f2252c6ab13c16102de90c784a2624d/main.go#L168-L173) with value v2
5+
- The PowerVS cluster will use [external cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/).
66
- The [clusterclass-template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-simple-powervs-clusterclass.yaml) will use [clusterresourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) and will create the necessary config map, secret and roles to run the cloud controller manager
77

88
### Deploy PowerVS cluster with IBM PowerVS cloud provider

docs/book/src/topics/powervs/create-resources.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- To deploy cluster which creates required resources, set ```powervs.cluster.x-k8s.io/create-infra:true``` annotation to IBMPowerVSCluster resource.
66
- The cluster will be configured with IBM PowerVS external [cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/)
77
- The [create_infra template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-powervs-create-infra.yaml) will use [clusterresourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) and will create the necessary config map, secret and roles to run the cloud controller manager
8-
- As a prerequisite set the `provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/5e7f80878f2252c6ab13c16102de90c784a2624d/main.go#L168-L173) with value v2
98

109
### Deploy PowerVS cluster with IBM PowerVS cloud provider
1110

docs/book/src/topics/powervs/external-cloud-provider.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
- To deploy a PowerVS workload cluster with IBM PowerVS external [cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/), create a cluster configuration with the [external cloud provider template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-powervs-cloud-provider.yaml)
77
- The [external cloud provider template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-powervs-cloud-provider.yaml) will use [clusterresourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) and will create the necessary config map, secret and roles to run the cloud controller manager
8-
- As a prerequisite set the `provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/5e7f80878f2252c6ab13c16102de90c784a2624d/main.go#L168-L173) with value v2
98

109
### Deploy PowerVS cluster with IBM PowerVS cloud provider
1110

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@ func initFlags(fs *pflag.FlagSet) {
103103
10*time.Minute,
104104
"The minimum interval at which watched resources are reconciled.",
105105
)
106-
107106
fs.StringVar(
108107
&options.ProviderIDFormat,
109108
"provider-id-fmt",
110-
string(options.ProviderIDFormatV1),
109+
string(options.ProviderIDFormatV2),
111110
"ProviderID format is used set the Provider ID format for Machine",
112111
)
113112

@@ -132,6 +131,7 @@ func initFlags(fs *pflag.FlagSet) {
132131

133132
func validateFlags() error {
134133
switch options.ProviderIDFormatType(options.ProviderIDFormat) {
134+
// Deprecated: ProviderIDFormatV1 is deprecated and will be removed in a future release.
135135
case options.ProviderIDFormatV1:
136136
setupLog.Info("Using v1 version of ProviderID format")
137137
case options.ProviderIDFormatV2:

pkg/options/options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const (
2323
// ProviderIDFormatV1 will set provider id to machine as follows
2424
// For VPC machines: ibmvpc://<cluster_name>/<vm_hostname>
2525
// For Power VS machines: ibmpowervs://<cluster_name>/<vm_hostname>
26+
// Deprecated: ProviderIDFormatV1 is deprecated and will be removed in a future release. see https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/issues/1868 for more details.
27+
// use ProviderIDFormatV2 instead ProviderIDFormatV1.
2628
ProviderIDFormatV1 ProviderIDFormatType = "v1"
2729

2830
// ProviderIDFormatV2 will set provider id to machine as follows

0 commit comments

Comments
 (0)