Skip to content

Only update kops-controller pods on deletion #10871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ spec:
matchLabels:
k8s-app: kops-controller
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
type: OnDelete
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@ func (b *BootstrapChannelBuilder) buildAddons(c *fi.ModelBuilderContext) (*chann
id := "k8s-1.16"

addons.Spec.Addons = append(addons.Spec.Addons, &channelsapi.AddonSpec{
Name: fi.String(key),
Version: fi.String(version),
Selector: map[string]string{"k8s-addon": key},
Manifest: fi.String(location),
KubernetesVersion: ">=1.16.0-alpha.0",
Id: id,
Name: fi.String(key),
Version: fi.String(version),
Selector: map[string]string{"k8s-addon": key},
Manifest: fi.String(location),
KubernetesVersion: ">=1.16.0-alpha.0",
NeedsRollingUpdate: "control-plane",
Id: id,
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ spec:
type: Directory
name: kops-controller-pki
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
type: OnDelete

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ spec:
type: Directory
name: kops-controller-pki
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
type: OnDelete

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 83600ec2669579a1637700aac102f2dfbef4f01c
manifestHash: b7bd785f276ca12c902e09f22ba551fb4e5f0033
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ spec:
type: Directory
name: kops-controller-pki
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
type: OnDelete

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ spec:
- id: k8s-1.16
kubernetesVersion: '>=1.16.0-alpha.0'
manifest: kops-controller.addons.k8s.io/k8s-1.16.yaml
manifestHash: 89d7ad9af69cb88377b3e6a4bfc49a25d51079d4
manifestHash: 266f2e3020ea115166cff7c8b181e6af8de803fb
name: kops-controller.addons.k8s.io
needsRollingUpdate: control-plane
selector:
k8s-addon: kops-controller.addons.k8s.io
version: 1.21.0-alpha.2
Expand Down