Skip to content

Commit

Permalink
Merge branch 'shavit/intents-op-aws-agent' of ssh://github.com/otteri…
Browse files Browse the repository at this point in the history
…ze/helm-charts into shavit/intents-op-aws-agent
  • Loading branch information
orishoshan committed Nov 6, 2023
2 parents dd939ed + b3046f0 commit 35ccd9d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ rules:
- ""
resources:
- events
- serviceaccount
- serviceaccounts
verbs:
- create
- get
- list
- patch
- update
- watch
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -82,4 +85,4 @@ rules:
- patch
- update
- create
{{ end }}
{{ end }}
4 changes: 4 additions & 0 deletions credentials-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
- --cert-manager-approve-requests
{{- end }}
{{- end }}
{{ if eq true .Values.global.aws.enabled }}
- --aws-serviceaccount-binding=true
- --eks-oidc-url={{.Values.global.aws.oidcUrl | quote }}
{{ end }}
- --leader-elect
command:
- /manager
Expand Down
5 changes: 4 additions & 1 deletion credentials-operator/templates/serviceAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ metadata:
{{- with .Values.global.commonAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
app.kubernetes.io/version: {{ .Chart.Version }}
app.kubernetes.io/version: {{ .Chart.Version }}
{{ if .Values.global.aws.enabled }}
"eks.amazonaws.com/role-arn": {{ .Values.aws.iamRole }}
{{ end }}
3 changes: 3 additions & 0 deletions credentials-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ certManager:
useClusterIssuer: true
autoApprove: false

aws:
iamRole:

global:
# Extra annotations for deployed pods
podAnnotations: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
app.kubernetes.io/version: {{ .Chart.Version }}
{{ if .Values.global.aws.enabled }}
"eks.amazonaws.com/role-arn": {{ .Values.aws.iamRole }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ spec:
{{ end }}
- name: OTTERIZE_AWS_INTENTS_ENABLED
value: {{ .Values.global.aws.enabled | quote }}
- name: OTTERIZE_OIDC_URL
- name: OTTERIZE_EKS_OIDC_URL
value: {{ .Values.global.aws.oidcUrl | quote }}
volumeMounts:
- mountPath: /controller_manager_config.yaml
Expand Down
3 changes: 3 additions & 0 deletions intents-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ operator:
# cpu: 100m
# memory: 128Mi

aws:
iamRole:

# allowGetAllResources gives get permission to watch on all resources. If disabled, the operator will only
# be able to resolve pods up to their built-in owners. For example, a Pod is owned by a ReplicaSet that is owned by a Deployment.
# If that Deployment is owned by a custom resource, the operator will not be able to resolve it.
Expand Down

0 comments on commit 35ccd9d

Please sign in to comment.