Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Community Edition
Commits
98056572
Commit
98056572
authored
3 years ago
by
Shivaani Gupta
Browse files
Options
Download
Email Patches
Plain Diff
Add update strategy overlay to kpp-controlller version 34.0
parent
8f14338f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
addons/packages/kapp-controller/0.34.0/bundle/.imgpkg/bundle.yml
+2
-0
...packages/kapp-controller/0.34.0/bundle/.imgpkg/bundle.yml
addons/packages/kapp-controller/0.34.0/bundle/.imgpkg/images.yml
+3
-0
...packages/kapp-controller/0.34.0/bundle/.imgpkg/images.yml
addons/packages/kapp-controller/0.34.0/bundle/config/overlays/update-strategy-overlay.yaml
+50
-0
....34.0/bundle/config/overlays/update-strategy-overlay.yaml
addons/packages/kapp-controller/0.34.0/bundle/config/values.yaml
+8
-0
...packages/kapp-controller/0.34.0/bundle/config/values.yaml
addons/packages/kapp-controller/0.34.0/package.yaml
+1
-1
addons/packages/kapp-controller/0.34.0/package.yaml
with
64 additions
and
1 deletion
+64
-1
addons/packages/kapp-controller/0.34.0/bundle/.imgpkg/bundle.yml
+
2
-
0
View file @
98056572
...
...
@@ -3,6 +3,8 @@ kind: Bundle
metadata
:
name
:
kapp-controller
authors
:
-
name
:
Shivaani Gupta
email
:
gshivaani@vmware.com
-
name
:
Daniel Guo
email
:
gdaniel@vmware.com
-
name
:
Lucheng Bao
...
...
This diff is collapsed.
Click to expand it.
addons/packages/kapp-controller/0.34.0/bundle/.imgpkg/images.yml
+
3
-
0
View file @
98056572
...
...
@@ -3,5 +3,8 @@ apiVersion: imgpkg.carvel.dev/v1alpha1
images
:
-
annotations
:
kbld.carvel.dev/id
:
ghcr.io/vmware-tanzu/carvel-kapp-controller@sha256:d05863e678ea384a55f1315e322c0a8d2f80b571c3418d807921e0eb4cb498ff
kbld.carvel.dev/origins
:
|
- preresolved:
url: ghcr.io/vmware-tanzu/carvel-kapp-controller@sha256:d05863e678ea384a55f1315e322c0a8d2f80b571c3418d807921e0eb4cb498ff
image
:
ghcr.io/vmware-tanzu/carvel-kapp-controller@sha256:d05863e678ea384a55f1315e322c0a8d2f80b571c3418d807921e0eb4cb498ff
kind
:
ImagesLock
This diff is collapsed.
Click to expand it.
addons/packages/kapp-controller/0.34.0/bundle/config/overlays/update-strategy-overlay.yaml
0 → 100644
+
50
-
0
View file @
98056572
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#! We are adding this overlay in the package to accomandate the need from vSphere supervisor cluster:
#! `deployment.spec.strategy.type` is configured to `RollingUpdate`
#! `deployment.spec.strategy.rollingUpdate.maxUnavailable` is set to `0`.
#! `deployment.spec.strategy.rollingUpdate.maxSurge` is set to `1`.
#! `deployment.spec.template.spec.nodeSelector`is set to target only `Nodes`
#! `daemonset.spec.updateStrategy.type` is configured to `OnDelete`
#! This overlay makes configuring the above parameters possible
#! Reference: https://github.com/vmware-tanzu/tanzu-framework/issues/1850
#@overlay/match expects="0+",by=overlay.subset({"kind":"Deployment"})
---
kind
:
Deployment
spec
:
#@ if data.values.deployment.updateStrategy != None:
#@overlay/match missing_ok=True
strategy
:
type
:
#@ data.values.deployment.updateStrategy
#@overlay/match missing_ok=True
#@ if data.values.deployment.updateStrategy == "RollingUpdate":
rollingUpdate
:
#@ if/end data.values.deployment.rollingUpdate.maxUnavailable != None:
maxUnavailable
:
#@ data.values.deployment.rollingUpdate.maxUnavailable
#@ if/end data.values.deployment.rollingUpdate.maxSurge != None:
maxSurge
:
#@ data.values.deployment.rollingUpdate.maxSurge
#@ end
#@ end
#@ if data.values.nodeSelector != None:
template
:
spec
:
#@overlay/match missing_ok=True
nodeSelector
:
#@ for key in data.values.nodeSelector:
#@overlay/match missing_ok=True
#@yaml/text-templated-strings
(@= key @)
:
#@ data.values.nodeSelector[key]
#@ end
#@ end
#@overlay/match expects="0+",by=overlay.subset({"kind":"DaemonSet"})
---
kind
:
DaemonSet
spec
:
#@ if data.values.daemonset.updateStrategy:
#@overlay/match missing_ok=True
updateStrategy
:
type
:
#@ data.values.daemonset.updateStrategy
#@ end
This diff is collapsed.
Click to expand it.
addons/packages/kapp-controller/0.34.0/bundle/config/values.yaml
+
8
-
0
View file @
98056572
...
...
@@ -2,6 +2,14 @@
#@overlay/match-child-defaults missing_ok=True
---
namespace
:
kapp-controller
nodeSelector
:
null
deployment
:
updateStrategy
:
null
rollingUpdate
:
maxUnavailable
:
null
maxSurge
:
null
daemonset
:
updateStrategy
:
null
kappController
:
namespace
:
null
createNamespace
:
true
...
...
This diff is collapsed.
Click to expand it.
addons/packages/kapp-controller/0.34.0/package.yaml
+
1
-
1
View file @
98056572
...
...
@@ -12,7 +12,7 @@ spec:
spec
:
fetch
:
-
imgpkgBundle
:
image
:
projects.registry.vmware.com/tce/kapp-controller@sha256:
c74a023c3b61cb01e9b5967cfb8a602365612be7f177a70f9ab1cd149351c2bd
image
:
projects.registry.vmware.com/tce/kapp-controller@sha256:
1bd4eada322086d189ec6f1505672213f39674a842be30d18d591eefa9f88a4a
template
:
-
ytt
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment