File tree Expand file tree Collapse file tree 7 files changed +15
-0
lines changed
pkg/handlers/generic/lifecycle
serviceloadbalancer/metallb Expand file tree Collapse file tree 7 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"text/template"
12
12
13
13
"github.com/go-logr/logr"
14
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
14
15
"github.com/spf13/pflag"
15
16
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
16
17
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
@@ -148,6 +149,7 @@ func (p *provider) Apply(
148
149
ObjectMeta : metav1.ObjectMeta {
149
150
Namespace : cluster .Namespace ,
150
151
Name : "nutanix-ccm-" + cluster .Name ,
152
+ Labels : utils .NewLabels (utils .WithMove ()),
151
153
},
152
154
Spec : caaphv1.HelmChartProxySpec {
153
155
RepoURL : helmChart .Repository ,
Original file line number Diff line number Diff line change 8
8
"fmt"
9
9
10
10
"github.com/go-logr/logr"
11
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
11
12
"github.com/spf13/pflag"
12
13
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
13
14
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
@@ -89,6 +90,7 @@ func (s helmAddonStrategy) apply(
89
90
ObjectMeta : metav1.ObjectMeta {
90
91
Namespace : req .Cluster .Namespace ,
91
92
Name : "calico-cni-installation-" + req .Cluster .Name ,
93
+ Labels : utils .NewLabels (utils .WithMove ()),
92
94
},
93
95
Spec : caaphv1.HelmChartProxySpec {
94
96
RepoURL : s .helmChart .Repository ,
Original file line number Diff line number Diff line change 8
8
"fmt"
9
9
10
10
"github.com/go-logr/logr"
11
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
11
12
"github.com/spf13/pflag"
12
13
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
13
14
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
@@ -73,6 +74,7 @@ func (s helmAddonStrategy) apply(
73
74
ObjectMeta : metav1.ObjectMeta {
74
75
Namespace : req .Cluster .Namespace ,
75
76
Name : "cilium-cni-installation-" + req .Cluster .Name ,
77
+ Labels : utils .NewLabels (utils .WithMove ()),
76
78
},
77
79
Spec : caaphv1.HelmChartProxySpec {
78
80
RepoURL : s .helmChart .Repository ,
Original file line number Diff line number Diff line change 8
8
"fmt"
9
9
10
10
"github.com/go-logr/logr"
11
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
11
12
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
12
13
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
13
14
runtimehooksv1 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1"
@@ -105,6 +106,7 @@ helperImage:
105
106
ObjectMeta : metav1.ObjectMeta {
106
107
Namespace : req .Cluster .Namespace ,
107
108
Name : "local-path-provisioner-csi-" + req .Cluster .Name ,
109
+ Labels : utils .NewLabels (utils .WithMove ()),
108
110
},
109
111
Spec : caaphv1.HelmChartProxySpec {
110
112
RepoURL : chart .Repository ,
Original file line number Diff line number Diff line change 8
8
"fmt"
9
9
10
10
"github.com/go-logr/logr"
11
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
11
12
"github.com/spf13/pflag"
12
13
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
13
14
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
@@ -181,6 +182,7 @@ func (n *NutanixCSI) handleHelmAddonApply(
181
182
ObjectMeta : metav1.ObjectMeta {
182
183
Namespace : req .Cluster .Namespace ,
183
184
Name : "nutanix-csi-" + req .Cluster .Name ,
185
+ Labels : utils .NewLabels (utils .WithMove ()),
184
186
},
185
187
Spec : caaphv1.HelmChartProxySpec {
186
188
RepoURL : storageChart .Repository ,
@@ -203,6 +205,7 @@ func (n *NutanixCSI) handleHelmAddonApply(
203
205
ObjectMeta : metav1.ObjectMeta {
204
206
Namespace : req .Cluster .Namespace ,
205
207
Name : "nutanix-csi-snapshot-" + req .Cluster .Name ,
208
+ Labels : utils .NewLabels (utils .WithMove ()),
206
209
},
207
210
Spec : caaphv1.HelmChartProxySpec {
208
211
RepoURL : snapshotChart .Repository ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
17
17
18
18
caaphv1 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/external/sigs.k8s.io/cluster-api-addon-provider-helm/api/v1alpha1"
19
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
19
20
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/k8s/client"
20
21
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/config"
21
22
lifecycleutils "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/utils"
79
80
ObjectMeta : metav1.ObjectMeta {
80
81
Namespace : req .Cluster .Namespace ,
81
82
Name : "node-feature-discovery-" + req .Cluster .Name ,
83
+ Labels : utils .NewLabels (utils .WithMove ()),
82
84
},
83
85
Spec : caaphv1.HelmChartProxySpec {
84
86
RepoURL : s .helmChart .Repository ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
17
17
18
18
caaphv1 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/external/sigs.k8s.io/cluster-api-addon-provider-helm/api/v1alpha1"
19
+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/utils"
19
20
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/k8s/client"
20
21
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/config"
21
22
lifecycleutils "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/utils"
@@ -126,6 +127,7 @@ func (n *MetalLB) Apply(
126
127
ObjectMeta : metav1.ObjectMeta {
127
128
Namespace : cluster .Namespace ,
128
129
Name : "metallb-" + cluster .Name ,
130
+ Labels : utils .NewLabels (utils .WithMove ()),
129
131
},
130
132
Spec : caaphv1.HelmChartProxySpec {
131
133
RepoURL : helmChartInfo .Repository ,
You can’t perform that action at this time.
0 commit comments