Skip to content

Commit 6546111

Browse files
committed
fix problem with installed clowder version
fixed ingress rules
1 parent e547bbe commit 6546111

File tree

8 files changed

+37
-24
lines changed

8 files changed

+37
-24
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ charts
55
.cr-release-packages
66
clowder-*.tgz
77

8-
98
# custom values
10-
/secrets-*.yaml
11-
/values-*.yaml
9+
secrets-*.yaml
10+
values-*.yaml
11+
*.values.yaml

Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ dependencies:
1010
version: 7.6.9
1111
- name: elasticsearch2
1212
repository: https://opensource.ncsa.illinois.edu/charts/
13-
version: 0.2.1
14-
digest: sha256:6a590b13f66b9e7564ad234c8392551e3d190fef4c202d66ffcb509a45763421
15-
generated: "2021-02-04T16:17:53.437178-06:00"
13+
version: 0.2.2
14+
digest: sha256:6f600ded45e6ecefc54382e7d4b12a9c4f8739c47c4232b4f8992066fbb256ba
15+
generated: "2021-02-09T20:43:39.752242-06:00"

Chart.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: >
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.9.0
16+
version: 0.9.1
1717

1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
@@ -34,8 +34,9 @@ annotations:
3434
- name: Helm Chart
3535
url: https://github.com/clowder-framework/clowder-helm
3636
artifacthub.io/changes: |
37-
- update clowder to 1.14.1
38-
- helm chart now in https://github.com/clowder-framework/clowder-helm
37+
- Forgot to increate clowder version tag.
38+
- Now using appVersion for clowder version tag by default.
39+
- Using `networking.k8s.io/v1` for ingress rules
3940
4041
# Dependencies for clowder. Some of the dependencies are only installed if they
4142
# are enabled.
@@ -54,6 +55,6 @@ dependencies:
5455
condition: rabbitmq.enabled
5556
- name: elasticsearch2
5657
alias: elasticsearch
57-
version: 0.2.1
58+
version: ~0.2
5859
repository: https://opensource.ncsa.illinois.edu/charts/
5960
condition: elasticsearch.enabled

templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
{{- $mongodburi := include "clowder.mongodburi" . }}
4545
{{- range $index, $element := .Values.users }}
4646
- name: mongo-add-user-{{ $index }}
47-
image: "{{ $.Values.image.repository }}/mongo-init:{{ $.Values.image.tag }}"
47+
image: "{{ $.Values.image.repository }}/mongo-init:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
4848
imagePullPolicy: {{ $.Values.image.pullPolicy }}
4949
env:
5050
- name: MONGO_URI
@@ -73,7 +73,7 @@ spec:
7373
{{- end }}
7474
containers:
7575
- name: {{ .Chart.Name }}
76-
image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
76+
image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
7777
imagePullPolicy: {{ .Values.image.pullPolicy }}
7878
command:
7979
- /home/clowder/clowder.sh

templates/ingress.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "clowder.fullname" . -}}
3-
apiVersion: extensions/v1beta1
3+
apiVersion: networking.k8s.io/v1
44
kind: Ingress
55
metadata:
66
name: {{ $fullName }}
@@ -28,16 +28,22 @@ spec:
2828
http:
2929
paths:
3030
- path: {{ $.Values.ingress.path }}
31+
pathType: ImplementationSpecific
3132
backend:
32-
serviceName: {{ $fullName }}
33-
servicePort: clowder
33+
service:
34+
name: {{ $fullName }}
35+
port:
36+
name: clowder
3437
{{- end }}
3538
{{- else }}
3639
- http:
3740
paths:
3841
- path: {{ $.Values.ingress.path }}
42+
pathType: ImplementationSpecific
3943
backend:
40-
serviceName: {{ $fullName }}
41-
servicePort: clowder
44+
service:
45+
name: {{ $fullName }}
46+
port:
47+
name: clowder
4248
{{- end }}
4349
{{- end }}

templates/monitor/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
key: rabbitmq-uri
3434
containers:
3535
- name: {{ .Chart.Name }}
36-
image: "{{ .Values.image.repository }}/monitor:{{ .Values.image.tag }}"
36+
image: "{{ .Values.image.repository }}/monitor:{{ .Values.image.tag | default .Chart.AppVersion }}"
3737
imagePullPolicy: {{ .Values.image.pullPolicy }}
3838
ports:
3939
- name: monitor

templates/monitor/ingress.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.monitor.enabled }}
22
{{- if .Values.ingress.enabled -}}
33
{{- $fullName := include "clowder.fullname" . -}}
4-
apiVersion: extensions/v1beta1
4+
apiVersion: networking.k8s.io/v1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}-monitor
@@ -29,17 +29,23 @@ spec:
2929
http:
3030
paths:
3131
- path: {{ $.Values.ingress.path }}monitor/
32+
pathType: ImplementationSpecific
3233
backend:
33-
serviceName: {{ $fullName }}-monitor
34-
servicePort: monitor
34+
service:
35+
name: {{ $fullName }}-monitor
36+
port:
37+
name: monitor
3538
{{- end }}
3639
{{- else }}
3740
- http:
3841
paths:
3942
- path: {{ $.Values.ingress.path }}monitor/
43+
pathType: ImplementationSpecific
4044
backend:
41-
serviceName: {{ $fullName }}-monitor
42-
servicePort: monitor
45+
service:
46+
name: {{ $fullName }}-monitor
47+
port:
48+
name: monitor
4349
{{- end }}
4450
{{- end }}
4551
{{- end }}

values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
image:
66
repository: clowder
77
name: clowder
8-
tag: 1.13.0
8+
tag: null
99
checks: "ncsa/checks:1.0.0"
1010
pullPolicy: IfNotPresent
1111

0 commit comments

Comments
 (0)