Skip to content

Commit

Permalink
restructure for nested helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jan 30, 2024
1 parent bb8ca6d commit dcb5fbc
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A Helm Chart for adding arbitrary configuration to a service instance
apiVersion: v2
name: instance-config
name: configmap

version: 1.0.0

Expand Down
19 changes: 19 additions & 0 deletions services/_helm/configmap/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.name }}-config
labels:
app: {{ .Release.name }}
data:

{{- /*
add the contents of every file in the config folder of this IOC helm chart
into the config map - The files must be text only.

Also add a version.txt file that contains the version of the IOC
*/ -}}

{{ (.Files.Glob "../../config/*").AsConfig | indent 2 }}
version.txt: |
"IOC {{ .Release.Name }} version {{ .Release.Version }}""
13 changes: 13 additions & 0 deletions services/_helm/ioc-instance/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# A Helm Chart for deploying an IOC instance
apiVersion: v2
name: ioc-instance-values

version: 1.0.0

type: application

dependencies:
- name: ioc-instance
version: "1.4.1"
# repository: "oci://ghcr.io/epics-containers"
repository: "file:///scratch/hgv27681/work/ec-helm-charts/Charts/ioc-instance"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# default values for all IOCs on bl38p
# see end of file for values that may be overridden per individual IOC
# default values for all IOCs on bl47p beamline

beamline: bl47p
# we use the default service account in the namespace so leave this out
Expand Down
23 changes: 0 additions & 23 deletions services/_ioc_helm/templates/configmap.yaml

This file was deleted.

13 changes: 7 additions & 6 deletions services/bl47p-ea-test-01/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ version: 1.4.1
type: application

dependencies:
- name: ioc-instance
version: "1.4.1"
# repository: "oci://ghcr.io/epics-containers"
repository: "file:///scratch/hgv27681/work/ec-helm-charts/Charts/ioc-instance"
- name: ioc-instance-config
- name: ioc-instance-values
version: "1.0.0"
repository: file://_ioc_helm
repository: file://helm/ioc-instance
# - name: configmap
# version: "1.0.0"
# repository: file://helm/configmap
# import-values:
# - Release.Name
1 change: 0 additions & 1 deletion services/bl47p-ea-test-01/_ioc_helm

This file was deleted.

1 change: 1 addition & 0 deletions services/bl47p-ea-test-01/helm

0 comments on commit dcb5fbc

Please sign in to comment.