aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra
diff options
context:
space:
mode:
Diffstat (limited to 'kud/deployment_infra')
-rw-r--r--kud/deployment_infra/emco/examples/02-project.yaml52
-rw-r--r--kud/deployment_infra/emco/examples/values.yaml.example2
2 files changed, 50 insertions, 4 deletions
diff --git a/kud/deployment_infra/emco/examples/02-project.yaml b/kud/deployment_infra/emco/examples/02-project.yaml
index 98ecfdb4..d62a4f65 100644
--- a/kud/deployment_infra/emco/examples/02-project.yaml
+++ b/kud/deployment_infra/emco/examples/02-project.yaml
@@ -7,17 +7,63 @@ version: emco/v2
resourceContext:
anchor: projects
metadata :
- name: {{ .ProjectName }}
+ name: {{ .ProjectName }}
---
-#create default logical cloud with admin permissions
+#create privileged logical cloud
version: emco/v2
resourceContext:
anchor: projects/{{ .ProjectName }}/logical-clouds
metadata:
name: {{ .LogicalCloud }}
spec:
- level: "0"
+ namespace: {{ .LogicalCloud }}
+ user:
+ user-name: {{ .LogicalCloud }}-admin
+ type: certificate
+
+---
+#create cluster quotas
+version: emco/v2
+resourceContext:
+ anchor: projects/{{ .ProjectName }}/logical-clouds/{{ .LogicalCloud }}/cluster-quotas
+metadata:
+ name: quota
+spec:
+ #an empty spec means that the addons will not be required to specify
+ #cpu, memory, etc. limits
+
+---
+#add namespaced permissions
+version: emco/v2
+resourceContext:
+ anchor: projects/{{ .ProjectName }}/logical-clouds/{{ .LogicalCloud }}/user-permissions
+metadata:
+ name: namespaced
+spec:
+ namespace: {{ .LogicalCloud }}
+ apiGroups:
+ - "*"
+ resources:
+ - "*"
+ verbs:
+ - "*"
+
+---
+#add non-namespaced permissions
+version: emco/v2
+resourceContext:
+ anchor: projects/{{ .ProjectName }}/logical-clouds/{{ .LogicalCloud }}/user-permissions
+metadata:
+ name: non-namespaced
+spec:
+ namespace: ""
+ apiGroups:
+ - "*"
+ resources:
+ - "*"
+ verbs:
+ - "*"
{{- range $index, $cluster := .Clusters }}
---
diff --git a/kud/deployment_infra/emco/examples/values.yaml.example b/kud/deployment_infra/emco/examples/values.yaml.example
index 8c4b6c30..67944eb8 100644
--- a/kud/deployment_infra/emco/examples/values.yaml.example
+++ b/kud/deployment_infra/emco/examples/values.yaml.example
@@ -11,7 +11,7 @@ Clusters:
Name: cluster
ProjectName: kud
-LogicalCloud: default
+LogicalCloud: kud
PackagesPath: $PWD/../output/packages
AddonsApp: addons