Skip to content

Commit 1806e0a

Browse files
authored
Release/0.6.0 (#130)
* copy 0.6.0 directory from 0.5.0 Signed-off-by: AiRanthem <[email protected]> * update CRDs and versions to 0.6.0 Signed-off-by: AiRanthem <[email protected]> * resort rbac_role.yaml to make it consistent with kustomize generated file, making it easier to update Signed-off-by: AiRanthem <[email protected]> * update rbac Signed-off-by: AiRanthem <[email protected]> --------- Signed-off-by: AiRanthem <[email protected]>
1 parent 083a43c commit 1806e0a

13 files changed

+3791
-1
lines changed

charts/kruise-rollout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../versions/kruise-rollout/0.4.1
1+
../versions/kruise-rollout/0.6.0
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
name: kruise-rollout
3+
description: Helm chart for kruise-rollout components
4+
version: 0.6.0
5+
appVersion: 0.6.0
6+
kubeVersion: ">= 1.19.0-0"
7+
icon: https://openkruise.io/img/openkruise-logo-bg.jpg
8+
keywords:
9+
- rollout
10+
home: https://openkruise.io
11+
sources:
12+
- https://github.com/openkruise/rollouts
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Kruise Rollout v0.6.0
2+
3+
## Configuration
4+
5+
The following table lists the configurable parameters of the kruise chart and their default values.
6+
7+
| Parameter | Description | Default |
8+
|----------------------------------|-------------------------------------------------------------------|-------------------------------------|
9+
| `installation.namespace` | Namespace for kruise-rollout operation installation | `kruise-rollout` |
10+
| `installation.createNamespace` | Whether to create the installation.namespace | `true` |
11+
| `rollout.fullname` | Nick name for kruise-rollout deployment and other configurations | `kruise-rollout-controller-manager` |
12+
| `rollout.featureGates` | Feature gates for kruise-rollout, empty string means all disabled | `AdvancedDeployment=true` |
13+
| `rollout.healthBindPort` | Port for checking health of kruise-rollout container | `8081` |
14+
| `rollout.metricsBindAddr` | Port of metrics served by kruise-rollout container | `127.0.0.1:8080` |
15+
| `rollout.log.level` | Log level that kruise-rollout printed | `4` |
16+
| `rollout.webhook.port` | Port of webhook served by kruise-rollout container | `9876` |
17+
| `rollout.webhook.objectSelector` | ObjectSelector for workloads in MutatingWebhookConfigurations | ` ` |
18+
| `image.repository` | Repository for kruise-rollout image | `openkruise/kruise-rollout` |
19+
| `image.tag` | Tag for kruise-rollout image | `v0.6.0` |
20+
| `image.pullPolicy` | ImagePullPolicy for kruise-rollout container | `Always` |
21+
| `imagePullSecrets` | The list of image pull secrets for kruise-rollout image | ` ` |
22+
| `resources.limits.cpu` | CPU resource limit of kruise-rollout container | `500m` |
23+
| `resources.limits.memory` | Memory resource limit of kruise-rollout container | `1Gi` |
24+
| `resources.requests.cpu` | CPU resource request of kruise-rollout container | `100m` |
25+
| `resources.requests.memory` | Memory resource request of kruise-rollout container | `256Mi` |
26+
| `replicaCount` | Replicas of kruise-rollout deployment | `2` |
27+
| `service.port` | Port of webhook served by kruise-rollout webhook service | `443` |
28+
| `serviceAccount.annotations` | The annotations for serviceAccount of kruise-rollout | ` ` |
29+
30+
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
31+
32+
### Optional: feature-gate
33+
34+
Feature-gate controls some influential features in Kruise:
35+
36+
| Name | Description | Default | Effect (if closed) |
37+
|-----------------------|--------------------------------------------------------------------------------------------------------|----------|-----------------------------------------|
38+
| `AdvancedDeployment` | Whether to enable the ability to rolling update deployment in batches without extra canary deployment | `true` | advanced deployment controller disabled |
39+
40+
### Optional: the local image for China
41+
42+
If you are in China and have problem to pull image from official DockerHub, you can use the registry hosted on Alibaba Cloud:
43+
44+
```bash
45+
$ helm install kruise https://... --set image.repository=openkruise-registry.cn-shanghai.cr.aliyuncs.com/openkruise/kruise-rollout
46+
...
47+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "rollout.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "rollout.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "rollout.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "rollout.labels" -}}
37+
helm.sh/chart: {{ include "rollout.chart" . }}
38+
{{ include "rollout.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "rollout.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "rollout.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "rollout.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "rollout.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{{- if .Values.installation.createNamespace }}
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
labels:
6+
control-plane: {{ .Values.rollout.fullname }}
7+
name: {{ .Values.installation.namespace }}
8+
{{- end }}
9+
---
10+
apiVersion: v1
11+
kind: Service
12+
metadata:
13+
name: kruise-rollout-webhook-service
14+
namespace: {{ .Values.installation.namespace }}
15+
spec:
16+
ports:
17+
- port: {{ .Values.service.port }}
18+
targetPort: {{ .Values.rollout.webhook.port }}
19+
selector:
20+
control-plane: {{ .Values.rollout.fullname }}
21+
---
22+
apiVersion: apps/v1
23+
kind: Deployment
24+
metadata:
25+
name: {{ .Values.rollout.fullname }}
26+
namespace: {{ .Values.installation.namespace }}
27+
labels:
28+
control-plane: {{ .Values.rollout.fullname }}
29+
spec:
30+
replicas: {{ .Values.replicaCount }}
31+
selector:
32+
matchLabels:
33+
control-plane: {{ .Values.rollout.fullname }}
34+
minReadySeconds: 3
35+
strategy:
36+
type: RollingUpdate
37+
rollingUpdate:
38+
maxUnavailable: 0
39+
maxSurge: 100%
40+
template:
41+
metadata:
42+
labels:
43+
control-plane: {{ .Values.rollout.fullname }}
44+
spec:
45+
{{- with .Values.imagePullSecrets }}
46+
imagePullSecrets:
47+
{{- toYaml . | nindent 8 }}
48+
{{- end }}
49+
serviceAccountName: {{ .Values.rollout.fullname }}
50+
containers:
51+
- name: {{ .Chart.Name }}
52+
args:
53+
- --leader-elect
54+
- --health-probe-bind-address=:{{ .Values.rollout.healthBindPort }}
55+
- --metrics-bind-address={{ .Values.rollout.metricsBindAddr }}
56+
- --v={{ .Values.rollout.log.level }}
57+
{{- if .Values.rollout.featureGates }}
58+
- --feature-gates={{ .Values.rollout.featureGates }}
59+
{{- end }}
60+
command:
61+
- /manager
62+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
63+
imagePullPolicy: {{ .Values.image.pullPolicy }}
64+
env:
65+
- name: POD_NAMESPACE
66+
valueFrom:
67+
fieldRef:
68+
fieldPath: metadata.namespace
69+
ports:
70+
- containerPort: {{ .Values.rollout.webhook.port }}
71+
name: webhook-server
72+
protocol: TCP
73+
livenessProbe:
74+
httpGet:
75+
path: /healthz
76+
port: {{ .Values.rollout.healthBindPort }}
77+
initialDelaySeconds: 15
78+
periodSeconds: 20
79+
readinessProbe:
80+
httpGet:
81+
path: /readyz
82+
port: {{ .Values.rollout.healthBindPort }}
83+
initialDelaySeconds: 5
84+
periodSeconds: 10
85+
resources:
86+
{{- toYaml .Values.resources | nindent 12 }}
87+
affinity:
88+
podAntiAffinity:
89+
preferredDuringSchedulingIgnoredDuringExecution:
90+
- podAffinityTerm:
91+
labelSelector:
92+
matchExpressions:
93+
- key: control-plane
94+
operator: In
95+
values:
96+
- {{ .Values.rollout.fullname }}
97+
topologyKey: kubernetes.io/hostname
98+
weight: 100
99+
topologySpreadConstraints:
100+
- labelSelector:
101+
matchLabels:
102+
control-plane: {{ .Values.rollout.fullname }}
103+
matchLabelKeys:
104+
- pod-template-hash
105+
maxSkew: 1
106+
topologyKey: topology.kubernetes.io/zone
107+
whenUnsatisfiable: ScheduleAnyway
108+
{{- with .Values.tolerations }}
109+
tolerations:
110+
{{- toYaml . | nindent 8 }}
111+
{{- end }}

0 commit comments

Comments
 (0)