Skip to content

Commit

Permalink
mostly workin sub sub chart approach
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jan 31, 2024
1 parent 4cdd98d commit 0d2c189
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion helm/ioc-instance/Chart.yaml → helm/beamline/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A Helm Chart for deploying an IOC instance
apiVersion: v2
name: ioc-instance-values
name: beamline

version: 1.0.0

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion helm/configmap/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
apiVersion: v2
name: configmap

version: 1.0.0
version: 1.0.1

type: application
7 changes: 3 additions & 4 deletions helm/configmap/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.name }}-config
name: {{ .Release.Name }}-config
labels:
app: {{ .Values.ioc_name }}
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.
*/ -}}

{{ (.Files.Glob "../../config/*").AsConfig | indent 2 }}
{{ (.Files.Glob "../../*").AsConfig | indent 2 }}
8 changes: 4 additions & 4 deletions services/bl47p-ea-test-01/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ version: 1.4.1
type: application

dependencies:
- name: ioc-instance-values
version: "1.0.0"
repository: file://helm/ioc-instance
- name: configmap
version: "1.0.0"
version: "1.0.1"
repository: file://helm/configmap
- name: beamline
version: "1.0.0"
repository: file://helm/beamline
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-adsimdetector/releases/download/2024.1.2/ibek.ioc.schema.json
ioc_name: "{{ ioc_yaml_file_name }}"
ioc_name: "{{ env.ioc_name }}"

description: Example simulated camera for BL47P

Expand Down
2 changes: 1 addition & 1 deletion services/bl47p-ea-test-01/helm
6 changes: 5 additions & 1 deletion services/bl47p-ea-test-01/values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
image: ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.2
# global:
# ioc_name: bl47p-ea-test-01

ioc-instance:
image: ghcr.io/epics-containers/ioc-adsimdetector-linux-runtime:2024.1.2

0 comments on commit 0d2c189

Please sign in to comment.