Skip to content

Commit

Permalink
Merge pull request #51 from Michael-Sinz/main
Browse files Browse the repository at this point in the history
Updated helm chart for use with v0.0.5 of vmss-prototype
  • Loading branch information
Michael-Sinz authored Jan 28, 2021
2 parents d7864b8 + 7a65862 commit 9da5087
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helm/vmss-prototype/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for the Kamino vmss-prototype pattern image generator
name: vmss-prototype
version: 0.0.4
version: 0.0.5
maintainers:
- name: Michael Sinz
email: [email protected]
Expand Down
5 changes: 5 additions & 0 deletions helm/vmss-prototype/templates/vmss-prototype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ spec:
- {{ .Values.kamino.auto.minimumReadyTime | quote }}
- --minimum-candidates
- {{ .Values.kamino.auto.minimumCandidates | quote }}
- --maximum-image-age
- {{ .Values.kamino.auto.maximumImageAge | quote }}
{{- if .Values.kamino.auto.dryRun }}
- --dry-run
{{- end }}
{{- else }}
# Just a status run
- status
Expand Down
16 changes: 14 additions & 2 deletions helm/vmss-prototype/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ kamino:
# TODO: Point these to our public container registry once we have it setup
imageRegistry: ghcr.io
imageRepository: jackfrancis/kamino/vmss-prototype
imageTag: v0.0.3
imageTag: v0.0.5
# Pulling by hash has stronger assurance that the container is unchanged
imageHash: "a421ff768a798d581178626386c67117af2e2262dde334cef15d8f92df1a178f"
imageHash: "d154002ee4db8ca691357b7cc7ceb864d3e00f67a8a1be5554d749469d609c3f"
pullByHash: true

# include the name of the image pull secret in your cluster if you
Expand Down Expand Up @@ -52,6 +52,18 @@ kamino:
# candidate.
minimumCandidates: 1

# The maximum age of the current VMSS Prototype image before the auto
# node selection logic will try to find a new candate even if there
# has been no OS update/patch. If set to 0, this no age is defined
# and thus the age is never considered. Otherwise it is the number
# of days in age of the current image. For example, if set to 7 days,
# once the current VMSS Prototype image is over 7 days old, the auto
# node selection process will not limit its node selection only to nodes
# that have an OS update/patch that is newer than the prior image.
# OS Updates/patches are always preferred but if the age is over the
# limit, an OS update/patch is not required.
maximumImageAge: 0

# The annotation on a node that holds the last time a patch was
# "applied"
#lastPatchAnnotation: weave.works/kured-most-recent-reboot-needed
Expand Down
4 changes: 3 additions & 1 deletion vmss-prototype/smoketest3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ ${HELM3} upgrade --install ${DEPLOYMENT_NAME} ../helm/vmss-prototype \
--set kamino.drain.force=true \
--set kamino.targetVMSS=ALL \
--set kamino.auto.lastPatchAnnotation=LatestOSPatch \
--set kamino.auto.pendingRebootAnnotation=PendingReboot
--set kamino.auto.pendingRebootAnnotation=PendingReboot \
--set kamino.auto.maximumImageAge=15 \
--set kamino.auto.dryRun=true

kubectl get jobs --namespace ${NAMESPACE} --selector app=kamino-vmss-prototype

Expand Down

0 comments on commit 9da5087

Please sign in to comment.