Skip to content

Commit

Permalink
feat: adding demo root namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Jul 2, 2024
1 parent 726c80d commit bc94e73
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions charts/example-resources/templates/accounts/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.accounts.rootNamespace }}

---
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.accounts.demoRootNamespace }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/example-resources/templates/accounts/root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
type: folder
displayName: OpenMFP Root Account
namespace: demo-root
namespace: {{ .Values.accounts.demoRootNamespace }}
extensions:
- apiVersion: v1
kind: ConfigMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ matches the snapshot:
metadata:
name: openmfp-root
3: |
apiVersion: v1
kind: Namespace
metadata:
name: demo-root
4: |
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -31,7 +36,7 @@ matches the snapshot:
- update
- patch
- delete
4: |
5: |
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -44,7 +49,7 @@ matches the snapshot:
- kind: ServiceAccount
name: account-operator
namespace: openmfp-system
5: |
6: |
apiVersion: core.openmfp.io/v1alpha1
kind: Account
metadata:
Expand Down

0 comments on commit bc94e73

Please sign in to comment.