Skip to content

Commit 40b27fb

Browse files
authored
chore(edge): Update to Edge v20.1.4 (#215)
* chore(edge): Update to Edge v20.1.1 * Update Chart.yaml * task: move to offline mode since v20 removes dynamic mode * fix: chartlint for extraobjects
1 parent fb19654 commit 40b27fb

File tree

4 files changed

+47
-22
lines changed

4 files changed

+47
-22
lines changed

charts/unleash-edge/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ icon: https://docs.getunleash.io/img/logo.svg
55

66
type: application
77

8-
version: 3.1.0
9-
appVersion: "v20.0.0"
8+
version: 3.1.1
9+
appVersion: "v20.1.4"
1010

1111

1212
maintainers:

charts/unleash-edge/ci/unleash-edge-values.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,41 @@ autoscaling:
66
ingress:
77
enabled: true
88

9-
existingSecrets: ""
10-
9+
existingSecrets: "unleash-edge-token"
1110
edge:
1211
upstreamUrl: "http://unleash:4242"
12+
command:
13+
- "offline"
1314

14-
readinessProbe:
15-
enabled: true
16-
path: /internal-backstage/health
17-
initialDelaySeconds: 30
18-
timeoutSeconds: 10
19-
periodSeconds: 10
20-
successThreshold: 5
15+
env:
16+
- name: BOOTSTRAP_FILE
17+
value: /data/features.json
2118

22-
livenessProbe:
23-
enabled: true
24-
path: /internal-backstage/health
25-
initialDelaySeconds: 30
26-
timeoutSeconds: 10
19+
volumes:
20+
- name: edge-features-value
21+
configMap:
22+
name: unleash-edge-features
23+
items:
24+
- key: features.json
25+
path: features.json
26+
volumeMounts:
27+
- name: edge-features-value
28+
mountPath: /data
29+
30+
extraObjects:
31+
- apiVersion: v1
32+
kind: Secret
33+
metadata:
34+
name: unleash-edge-token
35+
stringData:
36+
CLIENT_TOKENS: "*.development:mysecret"
37+
- apiVersion: v1
38+
kind: ConfigMap
39+
metadata:
40+
name: unleash-edge-features
41+
data:
42+
features.json: |
43+
{
44+
"version": 2,
45+
"features":[{"strategies":[{"name":"applicationHostname","constraints":[],"parameters":{"hostNames":""}},{"name":"userWithId","constraints":[],"parameters":{"userIds":""}}],"impressionData":false,"enabled":true,"name":"1234","description":"","project":"default","stale":false,"type":"release","variants":[]},{"strategies":[{"name":"userWithId","constraints":[],"parameters":{"userIds":"44113858,77331345,54502293,95104627,55505705,128535,72247905"}},{"name":"userWithId","constraints":[],"parameters":{"userIds":"48755422"}},{"name":"userWithId","constraints":[],"parameters":{"userIds":"128535"}}],"impressionData":false,"enabled":true,"name":"demoApp.step2","description":"Enable a feature for a specific userId","project":"demo-app","stale":false,"type":"permission","variants":[]},{"strategies":[],"impressionData":false,"enabled":false,"name":"res","description":"","project":"default","stale":false,"type":"kill-switch","variants":[]},{"strategies":[{"name":"userWithId","constraints":[{"values":["then","this"],"inverted":false,"operator":"IN","contextName":"appName","caseInsensitive":false},{"values":["1234567"],"inverted":false,"operator":"IN","contextName":"companyId","caseInsensitive":false},{"values":["123","456"],"inverted":true,"operator":"IN","contextName":"userId","caseInsensitive":false},{"values":["4","5"],"inverted":true,"operator":"IN","contextName":"AccountId","caseInsensitive":false}],"parameters":{"userIds":""}},{"name":"flexibleRollout","constraints":[],"parameters":{"groupId":"demoApp.step3","rollout":"100","stickiness":"userId"}}],"impressionData":false,"enabled":true,"name":"demoApp.step3","description":"Gradual rollout of feature toggle","project":"demo-app","stale":false,"type":"release","variants":[]},{"strategies":[{"name":"flexibleRollout","constraints":[],"parameters":{"groupId":"atf1","rollout":"100","stickiness":"default"}}],"impressionData":false,"enabled":true,"name":"atf1","description":"haha","project":"default","stale":false,"type":"release","variants":[]}]
46+
}

charts/unleash-edge/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ spec:
5757
- secretRef:
5858
name: {{ .Values.existingSecrets }}
5959
{{- end }}
60+
{{- if .Values.existingConfigMap }}
61+
envFrom:
62+
- configMapRef:
63+
name: {{ .Values.existingConfigMap }}
64+
{{- end }}
6065
securityContext:
6166
{{- toYaml .Values.securityContext | nindent 12 }}
6267
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -125,7 +130,7 @@ spec:
125130
{{- toYaml . | nindent 8 }}
126131
{{- end }}
127132
{{- with .Values.topologySpreadConstraints }}
128-
topologySpreadConstraints:
133+
topologySpreadConstraints:
129134
{{- range . }}
130135
- {{ toYaml . | nindent 8 | trim }}
131136
labelSelector:
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{{ range .Values.extraObjects }}
1+
{{- range $i, $obj := .Values.extraObjects }}
22
---
3-
{{- if typeIs "string" . }}
4-
{{- tpl . $ }}
3+
{{- if typeIs "string" $obj }}
4+
{{ tpl $obj $ | nindent 0 }}
55
{{- else }}
6-
{{- tpl (toYaml .) $ }}
6+
{{ tpl (toYaml $obj) $ | nindent 0 }}
7+
{{- end }}
78
{{- end }}
8-
{{ end }}

0 commit comments

Comments
 (0)