Skip to content

Commit f06c983

Browse files
authored
Merge pull request #4 from etoensfeldt/main
Release/4.28
2 parents c3816e8 + b5a8bed commit f06c983

File tree

9 files changed

+101
-6
lines changed

9 files changed

+101
-6
lines changed

charts/opc-router/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.3
18+
version: 0.1.4
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "4.27"
24+
appVersion: "4.28"
2525

2626
dependencies:
2727
- name: mongodb

charts/opc-router/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ If release name contains chart name it will be used as a full name.
2727
{{- include "opc-router.fullname" . | cat "redundant" | replace " " "-" | trunc 63 | trimSuffix "-" }}
2828
{{- end }}
2929

30+
{{- define "opc-router.license.fullname" -}}
31+
{{- include "opc-router.fullname" . | cat "license" | replace " " "-" | trunc 63 | trimSuffix "-" }}
32+
{{- end }}
33+
3034
{{/*
3135
Create chart name and version as used by the chart label.
3236
*/}}

charts/opc-router/templates/deployment.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ spec:
8383
{{- end }}
8484
resources:
8585
{{- toYaml .Values.resources | nindent 12 }}
86+
# Volume mount for license
87+
volumeMounts:
88+
- mountPath: /root/.dotnet/corefx/cryptography/x509stores/
89+
name: license-volume
8690
{{- if .Values.project.projectRepo }}
8791
# Project repo is specified: Get and load project
8892
# Volume mount for the project and configuration file
89-
volumeMounts:
9093
- mountPath: /data
9194
name: project-volume
9295
# Command and arguments for loading the project and configuration into the opcrouter
@@ -152,8 +155,13 @@ spec:
152155
name: {{ .Values.project.auth.ssh_secret | default (printf "%s-%s" (include "opc-router.fullname" $) "secret" | trunc 63 | trimSuffix "-") }}
153156
key: project-ssh-key
154157
{{- end }}
158+
{{- end }}
155159
# Volume for the project and configuration file
156160
volumes:
161+
- name: license-volume
162+
persistentVolumeClaim:
163+
claimName: {{ include "opc-router.license.fullname" . }}
164+
{{- if .Values.project.projectRepo }}
157165
- name: project-volume
158166
{{- if .Values.project.persistantVolume.deploy }}
159167
persistentVolumeClaim:
@@ -173,4 +181,4 @@ spec:
173181
{{- with .Values.tolerations }}
174182
tolerations:
175183
{{- toYaml . | nindent 8 }}
176-
{{- end }}
184+
{{- end }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: {{ include "opc-router.license.fullname" . }}
5+
labels:
6+
{{- include "opc-router.labels" . | nindent 4 }}
7+
{{- if .Values.license.keepAfterUninstall }}
8+
annotations:
9+
"helm.sh/resource-policy": keep
10+
{{- end }}
11+
spec:
12+
{{- with .Values.license.storageClassName }}
13+
storageClassName: {{ . }}
14+
{{- end }}
15+
accessModes:
16+
- ReadWriteOnce
17+
resources:
18+
requests:
19+
storage: {{ .Values.license.capacity }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{- if .Values.license.storageVolume.createVolume }}
2+
apiVersion: v1
3+
kind: PersistentVolume
4+
metadata:
5+
name: {{ include "opc-router.license.fullname" . }}
6+
labels:
7+
type: local
8+
{{- include "opc-router.labels" . | nindent 4 }}
9+
spec:
10+
{{- with .Values.license.storageClassName }}
11+
storageClassName: {{ . }}
12+
{{- end }}
13+
capacity:
14+
storage: {{ .Values.license.capacity }}
15+
accessModes:
16+
- ReadWriteOnce
17+
persistentVolumeReclaimPolicy: {{ .Values.license.storageVolume.reclaimPolicy }}
18+
{{ .Values.license.storageVolume.volumeType }}:
19+
{{- with .Values.license.storageVolume.volumeTypeOptions }}
20+
{{- toYaml . | nindent 4 }}
21+
{{- end }}
22+
claimRef:
23+
name: {{ include "opc-router.license.fullname" . }}
24+
namespace: {{ .Release.Namespace }}
25+
{{- with .Values.license.storageVolume.nodeAffinity }}
26+
nodeAffinity:
27+
{{- toYaml . | nindent 4 }}
28+
{{- end }}
29+
{{- end }}

charts/opc-router/templates/persistantclaim.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if .Values.project.persistantVolume.deploy }}
2+
{{- if .Values.project.projectRepo }}
23
apiVersion: v1
34
kind: PersistentVolumeClaim
45
metadata:
@@ -12,4 +13,5 @@ spec:
1213
resources:
1314
requests:
1415
storage: {{ .Values.project.persistantVolume.size }}
16+
{{- end }}
1517
{{- end }}

charts/opc-router/templates/persistantstorage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if .Values.project.persistantVolume.deploy }}
2+
{{- if .Values.project.projectRepo }}
23
apiVersion: v1
34
kind: PersistentVolume
45
metadata:
@@ -17,4 +18,5 @@ spec:
1718
claimRef:
1819
name: {{ include "opc-router.fullname" . }}
1920
namespace: {{ .Release.Namespace }}
21+
{{- end }}
2022
{{- end }}

charts/opc-router/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "opc-router.fullname" . }}
66
labels:
77
{{- include "opc-router.labels" . | nindent 4 }}
8+
{{- with .Values.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.service.type }}
1014
ports:

charts/opc-router/values.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ image:
99
repository: opcrouter/service
1010
pullPolicy: IfNotPresent
1111
# Overrides the image tag whose default is the chart appVersion.
12-
tag: 4.27
12+
tag:
1313

1414
imagePullSecrets: []
1515
nameOverride: ""
@@ -83,13 +83,40 @@ service:
8383
# When list left blank, NodePort will chose a random port itself.
8484
# nodePort need to be in range 30000 to 32768.
8585
nodePort:
86-
# External IPs. The serice will be reachable under these IPs from outside the cluser,
86+
# External IPs. The service will be reachable under these IPs from outside the cluser,
8787
# when traffic ingresses into the cluster with the IPs as destination.
8888
externalIPs: []
8989
# LoadBalancer IP. Only used when LoadBalancer.
9090
# Used by some cloud providers to add external load balancers.
9191
# If not supported, it is just ignored.
9292
loadBalancerIP:
93+
# Annotations for service.
94+
# Some cloud providers may need special annotations for their loadbalancers to work.
95+
annotations: {}
96+
97+
license:
98+
# Storage capacity of license volume claim.
99+
capacity: "100M"
100+
# Storage class name of license volume claim.
101+
# If left as empty, will use default storage class, when availible.
102+
storageClassName:
103+
# If true, the license volume claim and volume will persist even after uninstalling the chart.
104+
keepAfterUninstall: false
105+
storageVolume:
106+
# If true, a new persistant volume is created for the license using the settings provided here.
107+
# When false, dynamic provisioning might still create a volume using the setting specified by the storageClass.
108+
createVolume: false
109+
# Persistant volume retain policy of license volume.
110+
reclaimPolicy: Retain
111+
# Volume type of license volume.
112+
volumeType: local
113+
# Volume type specific settings.
114+
volumeTypeOptions:
115+
path: /license
116+
# Mount options of license volume.
117+
mountOptions: []
118+
# Node affinity settings of license volume.
119+
nodeAffinity: {}
93120

94121
ingress:
95122
enabled: false

0 commit comments

Comments
 (0)