Skip to content

Commit

Permalink
update rke2-whereabouts to v0.6.2
Browse files Browse the repository at this point in the history
Update DaemonSet to pass `spec.nodeName` via the env to the pod
fixup for ee7586b

Signed-off-by: Michael Fritch <[email protected]>
  • Loading branch information
mgfritch authored and brandond committed Aug 4, 2023
1 parent 97bdb7e commit c7eede8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/rke2-multus/package.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://github.com/k8snetworkplumbingwg/helm-charts.git
subdirectory: multus
commit: ca7c0a7549952660eab8f4b12e7ec7be133b381c
packageVersion: 02
packageVersion: 03
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- charts-original/templates/cluster_role.yaml
+++ charts/templates/cluster_role.yaml
@@ -28,6 +28,11 @@
verbs:
- list
- watch
+- apiGroups: [""]
+ resources:
+ - nodes
+ verbs:
+ - get
- apiGroups: ["k8s.cni.cncf.io"]
resources:
- network-attachment-definitions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- charts-original/templates/daemonset.yaml
+++ charts/templates/daemonset.yaml
@@ -32,9 +32,15 @@
@@ -32,11 +32,22 @@
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
Expand All @@ -16,4 +16,11 @@
+ image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
+ - name: NODENAME
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: spec.nodeName
- name: WHEREABOUTS_NAMESPACE
valueFrom:
fieldRef:
2 changes: 1 addition & 1 deletion packages/rke2-whereabouts/package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url: https://github.com/k8snetworkplumbingwg/helm-charts.git
commit: ca7c0a7549952660eab8f4b12e7ec7be133b381c
subdirectory: whereabouts
packageVersion: 01
packageVersion: 02
# whereabouts is only used as a dependency of multus
doNotRelease: true

0 comments on commit c7eede8

Please sign in to comment.