Skip to content

Commit b96d341

Browse files
authored
kruise 1.7.0 (#112)
Signed-off-by: liheng.zms <[email protected]>
1 parent 6af33c3 commit b96d341

28 files changed

+10040
-3
lines changed

charts/kruise

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../versions/kruise/1.7.0-alpha.1
1+
../versions/kruise/1.7.0

versions/kruise/1.7.0-alpha.1/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ enableKubeCacheMutationDetector: false
2424
imagePullSecrets: []
2525

2626
manager:
27-
# settings for log print
27+
#settings for log print
2828
log:
2929
# log level for kruise-manager
3030
level: "4"
@@ -74,7 +74,7 @@ daemon:
7474
socketFile: ""
7575

7676
nodeSelector: {}
77-
affinity:
77+
affinity:
7878
nodeAffinity:
7979
requiredDuringSchedulingIgnoredDuringExecution:
8080
nodeSelectorTerms:

versions/kruise/1.7.0/.helmignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj

versions/kruise/1.7.0/Chart.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: v1
2+
name: kruise
3+
description: Helm chart for kruise components
4+
version: 1.7.0
5+
appVersion: 1.7.0
6+
kubeVersion: ">= 1.18.0-0"
7+
icon: https://openkruise.io/img/openkruise-logo-bg.jpg
8+
keywords:
9+
- openkruise
10+
- kubernetes
11+
- kruise
12+
- workload
13+
- statefulset
14+
- sidecar
15+
- job
16+
- deployment
17+
- cloneset
18+
home: https://openkruise.io
19+
sources:
20+
- https://github.com/openkruise/kruise
21+
annotations:
22+
artifacthub.io/changes: |
23+
- "[Changed]: https://github.com/openkruise/kruise/blob/master/CHANGELOG.md"
24+
- "[Security]: Fix potential security issues of dependent packages"
25+
- "[Changed]: Change kruise daemon dns policy to ClusterFirstWithHostNet"

versions/kruise/1.7.0/README.md

+155
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Test with default values
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "kruise.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12+
If release name contains chart name it will be used as a full name.
13+
*/}}
14+
{{- define "kruise.fullname" -}}
15+
{{- if .Values.fullnameOverride -}}
16+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
17+
{{- else -}}
18+
{{- $name := default .Chart.Name .Values.nameOverride -}}
19+
{{- if contains $name .Release.Name -}}
20+
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
21+
{{- else -}}
22+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create chart name and version as used by the chart label.
29+
*/}}
30+
{{- define "kruise.chart" -}}
31+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
32+
{{- end -}}
33+
34+
{{/*
35+
Lookup existing immutatble resources
36+
*/}}
37+
{{- define "webhookServiceSpec" -}}
38+
{{- $service := lookup "v1" "Service" .Values.installation.namespace "kruise-webhook-service" -}}
39+
{{- if $service -}}
40+
{{ if $service.spec.clusterIP -}}
41+
clusterIP: {{ $service.spec.clusterIP }}
42+
{{- end }}
43+
{{ if $service.spec.clusterIPs -}}
44+
clusterIPs:
45+
{{ $service.spec.clusterIPs }}
46+
{{- end }}
47+
{{ if $service.spec.ipFamilyPolicy -}}
48+
ipFamilyPolicy: {{ $service.spec.ipFamilyPolicy }}
49+
{{- end }}
50+
{{ if $service.spec.ipFamilies -}}
51+
ipFamilies:
52+
{{ $service.spec.ipFamilies }}
53+
{{- end }}
54+
{{ if $service.spec.type -}}
55+
type: {{ $service.spec.type }}
56+
{{- end }}
57+
{{ if $service.spec.ipFamily -}}
58+
ipFamily: {{ $service.spec.ipFamily }}
59+
{{- end }}
60+
{{- end -}}
61+
ports:
62+
- port: 443
63+
targetPort: {{ .Values.manager.webhook.port }}
64+
selector:
65+
control-plane: controller-manager
66+
{{- end -}}
67+
68+
{{- define "webhookSecretData" -}}
69+
{{- $secret := lookup "v1" "Secret" .Values.installation.namespace "kruise-webhook-certs" -}}
70+
{{- if $secret -}}
71+
data:
72+
{{- range $k, $v := $secret.data }}
73+
{{ $k }}: {{ $v }}
74+
{{- end }}
75+
{{- end }}
76+
{{- end -}}
77+
78+
{{- define "serviceAccountManager" -}}
79+
{{- $sa := lookup "v1" "ServiceAccount" .Values.installation.namespace "kruise-manager" -}}
80+
{{- if $sa -}}
81+
secrets:
82+
{{- range $v := $sa.secrets }}
83+
- name: {{ $v.name }}
84+
{{- end }}
85+
{{- end }}
86+
{{- end -}}
87+
88+
{{- define "serviceAccountDaemon" -}}
89+
{{- $sa := lookup "v1" "ServiceAccount" .Values.installation.namespace "kruise-daemon" -}}
90+
{{- if $sa -}}
91+
secrets:
92+
{{- range $v := $sa.secrets }}
93+
- name: {{ $v.name }}
94+
{{- end }}
95+
{{- end }}
96+
{{- end -}}

0 commit comments

Comments
 (0)