Skip to content

Commit 20efa5e

Browse files
authored
Merge pull request #67 from qmhu/crane-release-v0.6.0
Bump up to v0.6.0
2 parents b2917aa + 3f98d72 commit 20efa5e

File tree

7 files changed

+27
-8
lines changed

7 files changed

+27
-8
lines changed

charts/crane/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ sources:
1616

1717
type: application
1818

19-
version: 0.5.0
19+
version: 0.6.0
2020

21-
appVersion: v0.5.0
21+
appVersion: v0.6.0

charts/crane/templates/craned-deployment.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ spec:
2929
- name: craned
3030
image: "{{ .Values.craned.image.repository }}:{{ .Values.craned.image.tag | default .Chart.AppVersion }}"
3131
imagePullPolicy: {{ .Values.craned.image.pullPolicy }}
32+
env:
33+
- name: TZ
34+
value: Asia/Shanghai
35+
- name: CRANE_SYSTEM_NAMESPACE
36+
valueFrom:
37+
fieldRef:
38+
fieldPath: metadata.namespace
3239
command:
3340
- /craned
3441
args:
@@ -185,7 +192,7 @@ data:
185192
}
186193
187194
upstream cluster {
188-
server craned.crane-system:8082;
195+
server craned.{{ .Release.Namespace }}:8082;
189196
}
190197
191198
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
@@ -205,7 +212,7 @@ data:
205212
try_files $uri $uri/ /index.html;
206213
}
207214
location /grafana {
208-
set $upstream_grafana grafana.crane-system.svc.cluster.local;
215+
set $upstream_grafana grafana.{{ .Release.Namespace }}.svc.cluster.local;
209216
proxy_connect_timeout 180;
210217
proxy_send_timeout 180;
211218
proxy_read_timeout 180;

charts/scheduler/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ 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.0
18+
version: 0.2.0
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: 0.1.0
24+
appVersion: 0.2.0

charts/scheduler/templates/controller-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
env:
2323
- name: TZ
2424
value: Asia/Shanghai
25+
- name: CRANE_SYSTEM_NAMESPACE
26+
valueFrom:
27+
fieldRef:
28+
fieldPath: metadata.namespace
2529
command:
2630
- /controller
2731
- --policy-config-path=/data/policy.yaml

charts/scheduler/templates/scheduler-configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
data:
88
scheduler-config.yaml: |
9+
{{- if ge .Capabilities.KubeVersion.Minor "22" }}
910
apiVersion: kubescheduler.config.k8s.io/v1beta2
11+
{{- else }}
12+
apiVersion: kubescheduler.config.k8s.io/v1beta1
13+
{{- end }}
1014
kind: KubeSchedulerConfiguration
1115
leaderElection:
1216
leaderElect: false

charts/scheduler/templates/scheduler-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ spec:
2222
- /scheduler
2323
- --leader-elect=false
2424
- --config=/etc/kubernetes/kube-scheduler/scheduler-config.yaml
25-
image: "{{ .Values.scheduler.image.repository }}:{{ .Values.scheduler.image.tag | default .Chart.AppVersion }}"
25+
{ { - if ge .Capabilities.KubeVersion.Minor "22" } }
26+
image: "{{ .Values.scheduler.image.repository }}:0.0.23"
27+
{ { - else } }
28+
image: "{{ .Values.scheduler.image.repository }}:0.0.20"
29+
{ { - end } }
2630
livenessProbe:
2731
httpGet:
2832
path: /healthz

charts/scheduler/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ scheduler:
77
name: crane-scheduler
88
image:
99
repository: docker.io/gocrane/crane-scheduler
10-
tag: 0.0.23
10+
tag: 0.1.23
1111
replicaCount: 1
1212

1313
controller:

0 commit comments

Comments
 (0)