Skip to content

Commit

Permalink
Merge pull request #20 from tardich/master
Browse files Browse the repository at this point in the history
Adapting to flat install of latest whereabouts
  • Loading branch information
dougbtv authored Jun 24, 2022
2 parents a5b1556 + 958588f commit 49fbeda
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions whereabouts/templates/cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rules:
- whereabouts.cni.cncf.io
resources:
- ippools
- overlappingrangeipreservations
verbs:
- get
- list
Expand All @@ -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
2 changes: 1 addition & 1 deletion whereabouts/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "whereabouts.labels" . | nindent 4 }}
spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 0
successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit | default "0" }}
schedule: "*/5 * * * *"
jobTemplate:
spec:
Expand Down
3 changes: 1 addition & 2 deletions whereabouts/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions whereabouts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
namespaceOverride: "kube-system"
successfulJobsHistoryLimit: 0

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit 49fbeda

Please sign in to comment.