-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from itewk/feature/operators-installer-approv…
…er-hook operators-installer - add approveManualInstallPlanViaHook option
- Loading branch information
Showing
10 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
charts/operators-installer/templates/Job_installplan-approver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
charts/operators-installer/templates/Job_installplan-complete-verifier.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
charts/operators-installer/templates/RoleBinding_installplan-approvers.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
charts/operators-installer/templates/Role_installplan-approver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
charts/operators-installer/templates/ServiceAccount_installplan-approver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# create one installplan-approver ServiceAccount per unqiue namespace operators are being installed in | ||
{{- range $namespace := (include "operators-installer.uniqueNamespaces" $ | fromJsonArray) }} | ||
--- | ||
# create one installplan-approver ServiceAccount per unqiue namespace operators are being installed in | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: installplan-approver | ||
namespace: {{ $namespace }} | ||
labels: | ||
{{- include "operators-installer.labels" $ | nindent 4 }} | ||
{{- if $.Values.approveManualInstallPlanViaHook }} | ||
annotations: | ||
"helm.sh/hook": post-install,post-upgrade | ||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
"helm.sh/hook-weight": "-1" | ||
{{- end }} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
charts/operators-installer/test-install-multiple-operators-in-different-namespacesyaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters