Use EMCO logical cloud with addons 35/123335/1
authorTodd Malsbary <todd.malsbary@intel.com>
Mon, 16 Aug 2021 21:49:04 +0000 (14:49 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Tue, 17 Aug 2021 17:53:36 +0000 (10:53 -0700)
The moves the addons from the default namespace into their own, "kud"
namespace.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I5476c7634af7affe1b6bbd7d2bf9b5cd7a8206e5

kud/deployment_infra/emco/examples/02-project.yaml
kud/deployment_infra/emco/examples/values.yaml.example
kud/hosting_providers/containerized/addons/values.yaml.tmpl

index 98ecfdb..d62a4f6 100644 (file)
@@ -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 }}
 ---
index 8c4b6c3..67944eb 100644 (file)
@@ -11,7 +11,7 @@ Clusters:
   Name: cluster
 
 ProjectName: kud
-LogicalCloud: default
+LogicalCloud: kud
 
 PackagesPath: $PWD/../output/packages
 AddonsApp: addons
index f2a20f8..b3e5845 100644 (file)
@@ -11,7 +11,7 @@ Clusters:
   Name: cluster
 
 ProjectName: kud
-LogicalCloud: default
+LogicalCloud: kud
 
 PackagesPath: ${PACKAGES_PATH}
 AddonsApp: addons