Skip to content

Commit 8ac6220

Browse files
authored
Merge pull request #124 from mhjacks/main
Refactor how Kiosk vms are created
2 parents efc2df5 + b1c8ced commit 8ac6220

File tree

6 files changed

+13
-187
lines changed

6 files changed

+13
-187
lines changed

Changes.md

+2
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@
6464
the end of its maintenance support lifecycle.
6565
* Refactor installation mechannism to use standard configuration-as-code approach, which will make it easier to drop
6666
in a new config-as-code repository.
67+
* Move VM definitions outside of edge-gitops-vms chart so that derived patterns do not inherit the HMI kiosks. Kiosk
68+
VMs now defined by default in overrides.

charts/hub/edge-gitops-vms/templates/rhel8-kiosk-with-svc.yaml

-182
This file was deleted.

charts/hub/edge-gitops-vms/values.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ vmDefaults:
3838
protocol: TCP
3939
targetPort: 22
4040

41-
vms:
42-
kiosk:
43-
count: 2
44-
role: kiosk
41+
# Define the VMs you want to create with any specific attributes from vmDefaults
42+
# in an overrides file.
43+
vms: {}
4544

4645
serviceAccountName: ansible-edge-gitops-sa
4746
rbac:

overrides/values-egv-4.13.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
2-
defaultStorageClassName: "ocs-storagecluster-ceph-rbd"
2+
vmDefaults:
3+
storageClassName: "ocs-storagecluster-ceph-rbd"

overrides/values-egv-vms.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
vms:
3+
kiosk:
4+
count: 2
5+
role: kiosk

values-hub.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ clusterGroup:
106106
project: hub
107107
path: charts/hub/edge-gitops-vms
108108
extraValueFiles:
109+
- '$patternref/overrides/values-egv-vms.yaml'
109110
- '$patternref/overrides/values-egv-{{ $.Values.global.clusterVersion }}.yaml'
110111

111112
# Only the hub cluster here - managed entities are edge nodes

0 commit comments

Comments
 (0)