Skip to content

Commit 5cd93c5

Browse files
committed
Adds support for enabling external configmaps
1 parent fce9ab2 commit 5cd93c5

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

supported/osg-htc/osg-hosted-ce/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ apiVersion: v1
33
appVersion: "V5-branch"
44
description: OSG Hosted Compute Entrypoint
55
name: osg-hosted-ce
6-
version: 4.9.0
6+
version: 4.10.0

supported/osg-htc/osg-hosted-ce/templates/configmap.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ data:
7171
TCP_FORWARDING_HOST = {{ .Values.Networking.RequestIP }}
7272
{{ end }}
7373

74+
{{ if .Values.ExternalHTCondorCeConfig }}
75+
{{- range .Values.ExternalHTCondorCeConfig }}
76+
LOCAL_CONFIG_DIR = $(LOCAL_CONFIG_DIR),{{ .MountPath }}
77+
{{- end}}
78+
{{ end }}
79+
7480
SLATE_HOSTED_CE = True
7581
OSG_HOSTED_CE = True
7682
SCHEDD_ATTRS = $(SCHEDD_ATTRS) SLATE_HOSTED_CE OSG_HOSTED_CE

supported/osg-htc/osg-hosted-ce/templates/deployment.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ spec:
4646
persistentVolumeClaim:
4747
claimName: {{ .Values.Persistence.LibCondorCeVolume }}
4848
{{ end }}
49+
{{ if .Values.ExternalHTCondorCeConfig }}
50+
{{- range .Values.ExternalHTCondorCeConfig }}
51+
- name: {{ .Name }}
52+
configMap:
53+
name: {{ .Name }}
54+
{{- end }}
55+
{{ end }}
4956
- name: osg-hosted-ce-{{ .Values.Instance }}-configuration
5057
configMap:
5158
name: osg-hosted-ce-{{ .Values.Instance }}-configuration
@@ -115,6 +122,15 @@ spec:
115122
- name: osg-hosted-ce-{{ .Values.Instance }}-configuration
116123
mountPath: /tmp/90-local.ini
117124
subPath: 90-local.ini
125+
{{ if .Values.ExternalHTCondorCeConfig }}
126+
{{- range .Values.ExternalHTCondorCeConfig }}
127+
- name: {{ .Name }}
128+
mountPath: {{ .MountPath }}
129+
{{ if .SubPath }}
130+
subPath: {{ .SubPath }}
131+
{{ end }}
132+
{{- end}}
133+
{{ end }}
118134
- name: bosco-ssh-private-key-volume
119135
mountPath: /etc/osg/bosco.key
120136
subPath: bosco.key

supported/osg-htc/osg-hosted-ce/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ SciTokenRemoteUserMapping:
132132
# HTCondorCeConfig: |+
133133
# ALL_DEBUG = D_ALWAYS:2 D_CAT
134134

135+
# ExternalHTCondorCeConfig:
136+
# - Name: k8s-ce-config
137+
# MountPath: /etc/condor-ce/k8s-ce-config.d
138+
# - Name: ConfigTest
139+
# MountPath: /etc/condor-ce/test
140+
# SubPath: test.yaml
141+
135142
# Specify additional osg-configure configuration
136143
# See https://github.com/opensciencegrid/osg-configure#35-pilotini--pilot
137144
# OsgConfigureConfig: |+

0 commit comments

Comments
 (0)