Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operator permissions for argocd appications #122

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.10.4
version: 1.10.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions mirrord-operator/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@ rules:
- list
- watch
{{- end }}
{{- if .Values.operator.applicationPauseAutoSync }}
- apiGroups:
- argoproj.io
resources:
- applications
verbs:
- list
- get
- patch
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
4 changes: 4 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ spec:
value: {{ .Values.operator.sqsSplitting | ternary "true" "false" | quote }}
- name: OPERATOR_KAFKA_SPLITTING
value: {{ .Values.operator.kafkaSplitting | ternary "true" "false" | quote }}
{{- if .Values.operator.applicationPauseAutoSync }}
- name: OPERATOR_APPLICATION_PAUSE_AUTO_SYNC
value: "true"
{{- end }}
- name: OPERATOR_JSON_LOG
value: {{ .Values.operator.jsonLog | ternary "true" "false" | quote }}
- name: OPERATOR_AGENT_CONFIG
Expand Down
3 changes: 3 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ operator:
sqsSplitting: false
# Has to be set to `true` in order to use the Kafka queue splitting feature.
kafkaSplitting: false
# Has to be set to `true` in order to use the argocd application auto-sync pause feature.
applicationPauseAutoSync: false

# imagePullSecrets:
# - name: value

Expand Down
Loading