From 6d7cbe11690e3c1e44b102eb3c828db670a54970 Mon Sep 17 00:00:00 2001 From: Christian Tardif <20807320+tardich@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:34:56 -0400 Subject: [PATCH 1/4] Update cluster_role.yaml --- whereabouts/templates/cluster_role.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/whereabouts/templates/cluster_role.yaml b/whereabouts/templates/cluster_role.yaml index a9b02e2..148ae90 100644 --- a/whereabouts/templates/cluster_role.yaml +++ b/whereabouts/templates/cluster_role.yaml @@ -7,6 +7,7 @@ rules: - whereabouts.cni.cncf.io resources: - ippools + - overlappingrangeipreservations verbs: - get - list @@ -26,3 +27,20 @@ rules: - pods verbs: - list + - watch +- apiGroups: ["k8s.cni.cncf.io"] + resources: + - network-attachment-definitions + verbs: + - get + - list + - watch +- apiGroups: + - "" + - events.k8s.io + resources: + - events + verbs: + - create + - patch + - update From 8a8868b7c6dd3a8712e236fd49c47ee03cd12baf Mon Sep 17 00:00:00 2001 From: Christian Tardif <20807320+tardich@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:41:09 -0400 Subject: [PATCH 2/4] Update daemonset.yaml --- whereabouts/templates/daemonset.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/whereabouts/templates/daemonset.yaml b/whereabouts/templates/daemonset.yaml index 896efc3..fda9b24 100644 --- a/whereabouts/templates/daemonset.yaml +++ b/whereabouts/templates/daemonset.yaml @@ -22,13 +22,12 @@ spec: name: whereabouts {{- include "whereabouts.selectorLabels" . | nindent 8 }} spec: - priorityClassName: system-node-critical hostNetwork: true + serviceAccountName: {{ include "whereabouts.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - serviceAccountName: {{ include "whereabouts.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: From 2c8bf0518bb5be917eda38047f288c89ca919bc2 Mon Sep 17 00:00:00 2001 From: Christian Tardif <20807320+tardich@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:44:40 -0400 Subject: [PATCH 3/4] Update cronjob.yaml --- whereabouts/templates/cronjob.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whereabouts/templates/cronjob.yaml b/whereabouts/templates/cronjob.yaml index 4cc61a9..9a3eb65 100644 --- a/whereabouts/templates/cronjob.yaml +++ b/whereabouts/templates/cronjob.yaml @@ -7,7 +7,7 @@ metadata: {{- include "whereabouts.labels" . | nindent 4 }} spec: concurrencyPolicy: Forbid - successfulJobsHistoryLimit: 0 + successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit | default "0" }} schedule: "*/5 * * * *" jobTemplate: spec: From 958588fdcb2ec0cfaaa12855cb55e3623d1a41ce Mon Sep 17 00:00:00 2001 From: Christian Tardif <20807320+tardich@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:45:06 -0400 Subject: [PATCH 4/4] Update values.yaml --- whereabouts/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/whereabouts/values.yaml b/whereabouts/values.yaml index cced9b0..a68593b 100644 --- a/whereabouts/values.yaml +++ b/whereabouts/values.yaml @@ -13,6 +13,7 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" namespaceOverride: "kube-system" +successfulJobsHistoryLimit: 0 serviceAccount: # Specifies whether a service account should be created