-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: liheng.zms <[email protected]>
- Loading branch information
Showing
28 changed files
with
10,040 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../versions/kruise/1.7.0-alpha.1 | ||
../versions/kruise/1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: v1 | ||
name: kruise | ||
description: Helm chart for kruise components | ||
version: 1.7.0 | ||
appVersion: 1.7.0 | ||
kubeVersion: ">= 1.18.0-0" | ||
icon: https://openkruise.io/img/openkruise-logo-bg.jpg | ||
keywords: | ||
- openkruise | ||
- kubernetes | ||
- kruise | ||
- workload | ||
- statefulset | ||
- sidecar | ||
- job | ||
- deployment | ||
- cloneset | ||
home: https://openkruise.io | ||
sources: | ||
- https://github.com/openkruise/kruise | ||
annotations: | ||
artifacthub.io/changes: | | ||
- "[Changed]: https://github.com/openkruise/kruise/blob/master/CHANGELOG.md" | ||
- "[Security]: Fix potential security issues of dependent packages" | ||
- "[Changed]: Change kruise daemon dns policy to ClusterFirstWithHostNet" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Test with default values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "kruise.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "kruise.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "kruise.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Lookup existing immutatble resources | ||
*/}} | ||
{{- define "webhookServiceSpec" -}} | ||
{{- $service := lookup "v1" "Service" .Values.installation.namespace "kruise-webhook-service" -}} | ||
{{- if $service -}} | ||
{{ if $service.spec.clusterIP -}} | ||
clusterIP: {{ $service.spec.clusterIP }} | ||
{{- end }} | ||
{{ if $service.spec.clusterIPs -}} | ||
clusterIPs: | ||
{{ $service.spec.clusterIPs }} | ||
{{- end }} | ||
{{ if $service.spec.ipFamilyPolicy -}} | ||
ipFamilyPolicy: {{ $service.spec.ipFamilyPolicy }} | ||
{{- end }} | ||
{{ if $service.spec.ipFamilies -}} | ||
ipFamilies: | ||
{{ $service.spec.ipFamilies }} | ||
{{- end }} | ||
{{ if $service.spec.type -}} | ||
type: {{ $service.spec.type }} | ||
{{- end }} | ||
{{ if $service.spec.ipFamily -}} | ||
ipFamily: {{ $service.spec.ipFamily }} | ||
{{- end }} | ||
{{- end -}} | ||
ports: | ||
- port: 443 | ||
targetPort: {{ .Values.manager.webhook.port }} | ||
selector: | ||
control-plane: controller-manager | ||
{{- end -}} | ||
|
||
{{- define "webhookSecretData" -}} | ||
{{- $secret := lookup "v1" "Secret" .Values.installation.namespace "kruise-webhook-certs" -}} | ||
{{- if $secret -}} | ||
data: | ||
{{- range $k, $v := $secret.data }} | ||
{{ $k }}: {{ $v }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "serviceAccountManager" -}} | ||
{{- $sa := lookup "v1" "ServiceAccount" .Values.installation.namespace "kruise-manager" -}} | ||
{{- if $sa -}} | ||
secrets: | ||
{{- range $v := $sa.secrets }} | ||
- name: {{ $v.name }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "serviceAccountDaemon" -}} | ||
{{- $sa := lookup "v1" "ServiceAccount" .Values.installation.namespace "kruise-daemon" -}} | ||
{{- if $sa -}} | ||
secrets: | ||
{{- range $v := $sa.secrets }} | ||
- name: {{ $v.name }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
Oops, something went wrong.