Skip to content

Commit 9775182

Browse files
authored
Merge pull request #10871 from olemarkus/kops-controller-ondelete
Only update kops-controller pods on deletion
2 parents 0337c2b + 06cf351 commit 9775182

File tree

13 files changed

+27
-26
lines changed

13 files changed

+27
-26
lines changed

upup/models/cloudup/resources/addons/kops-controller.addons.k8s.io/k8s-1.16.yaml.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ spec:
2525
matchLabels:
2626
k8s-app: kops-controller
2727
updateStrategy:
28-
type: RollingUpdate
29-
rollingUpdate:
30-
maxUnavailable: 1
28+
type: OnDelete
3129
template:
3230
metadata:
3331
labels:

upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,13 @@ func (b *BootstrapChannelBuilder) buildAddons(c *fi.ModelBuilderContext) (*chann
216216
id := "k8s-1.16"
217217

218218
addons.Spec.Addons = append(addons.Spec.Addons, &channelsapi.AddonSpec{
219-
Name: fi.String(key),
220-
Version: fi.String(version),
221-
Selector: map[string]string{"k8s-addon": key},
222-
Manifest: fi.String(location),
223-
KubernetesVersion: ">=1.16.0-alpha.0",
224-
Id: id,
219+
Name: fi.String(key),
220+
Version: fi.String(version),
221+
Selector: map[string]string{"k8s-addon": key},
222+
Manifest: fi.String(location),
223+
KubernetesVersion: ">=1.16.0-alpha.0",
224+
NeedsRollingUpdate: "control-plane",
225+
Id: id,
225226
})
226227
}
227228
}

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/amazonvpc-containerd/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
10+
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/amazonvpc/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
10+
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/awscloudcontroller/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
10+
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/awsiamauthenticator/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
10+
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/cilium/kops-controller.addons.k8s.io-k8s-1.16.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ spec:
7676
type: Directory
7777
name: kops-controller-pki
7878
updateStrategy:
79-
rollingUpdate:
80-
maxUnavailable: 1
81-
type: RollingUpdate
79+
type: OnDelete
8280

8381
---
8482

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/cilium/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
10+
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/public-jwks/kops-controller.addons.k8s.io-k8s-1.16.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ spec:
7676
type: Directory
7777
name: kops-controller-pki
7878
updateStrategy:
79-
rollingUpdate:
80-
maxUnavailable: 1
81-
type: RollingUpdate
79+
type: OnDelete
8280

8381
---
8482

upup/pkg/fi/cloudup/tests/bootstrapchannelbuilder/public-jwks/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ spec:
77
- id: k8s-1.16
88
kubernetesVersion: '>=1.16.0-alpha.0'
99
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
10-
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
10+
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
1111
name: kops-controller.addons.k8s.io
12+
needsRollingUpdate: control-plane
1213
selector:
1314
k8s-addon: kops-controller.addons.k8s.io
1415
version: 1.21.0-alpha.2

0 commit comments

Comments
 (0)