This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
forked from azimuth-cloud/azimuth-caas-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Kubernetes backend for OpenTofu states (azimuth-cloud#133)
* Support global extravars for all appliances * Fail more aggressively when extravars secret is badly formatted * Add global extra vars to functional test * Ensure service account for ansible-runner creating TF states * Reinstate Consul URL for backwards compatibility * Fix scoping issue * Fix operator permissions
- Loading branch information
Showing
9 changed files
with
245 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "azimuth-caas-operator.fullname" . }}:tfstate | ||
labels: {{ include "azimuth-caas-operator.labels" . | nindent 4 }} | ||
rules: | ||
# This clusterrole is attached to cluster service accounts using a rolebinding | ||
# That means when it is used, it is namespace-scoped | ||
# It includes the permissions that are required to manage OpenTofu states in secrets | ||
- apiGroups: [""] | ||
resources: [secrets] | ||
verbs: [list, get, create, update] | ||
# Leases are used to implement state locking | ||
- apiGroups: [coordination.k8s.io] | ||
resources: [leases] | ||
verbs: [get, create, update] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "azimuth-caas-operator.fullname" . }}-extravars | ||
labels: {{ include "azimuth-caas-operator.labels" . | nindent 4 }} | ||
stringData: | ||
extravars: | | ||
{{- toYaml .Values.config.globalExtraVars | nindent 4 }} |
Oops, something went wrong.