-
Notifications
You must be signed in to change notification settings - Fork 717
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: PoAn Yang <poan.yang@suse.com>
- Loading branch information
1 parent
6b58782
commit 69a0073
Showing
24 changed files
with
1,009 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+5.35 KB
assets/harvester-cloud-provider/harvester-cloud-provider-105.0.1+up0.2.7.tgz
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
charts/harvester-cloud-provider/105.0.1+up0.2.7/.helmignore
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,23 @@ | ||
# 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 | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,6 @@ | ||
dependencies: | ||
- name: kube-vip | ||
repository: file://dependency_charts/kube-vip | ||
version: 0.4.2 | ||
digest: sha256:bbbff44d39375203f4880e5a76f0d9705f25edc53f89532e8ef39cd23d9ca92b | ||
generated: "2023-06-07T17:47:05.632456+08:00" |
27 changes: 27 additions & 0 deletions
27
charts/harvester-cloud-provider/105.0.1+up0.2.7/Chart.yaml
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,27 @@ | ||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/display-name: Harvester Cloud Provider | ||
catalog.cattle.io/kube-version: '>= 1.23.0-0 < 1.32.0-0' | ||
catalog.cattle.io/namespace: kube-system | ||
catalog.cattle.io/os: linux | ||
catalog.cattle.io/permits-os: linux | ||
catalog.cattle.io/rancher-version: '>= 2.10.0-0 < 2.11.0-0' | ||
catalog.cattle.io/release-name: harvester-cloud-provider | ||
catalog.cattle.io/ui-component: harvester-cloud-provider | ||
catalog.cattle.io/upstream-version: 0.2.7 | ||
apiVersion: v2 | ||
appVersion: v0.2.3 | ||
dependencies: | ||
- condition: kube-vip.enabled | ||
name: kube-vip | ||
repository: file://./charts/kube-vip | ||
version: 0.6.4 | ||
description: A Helm chart for Harvester Cloud Provider | ||
keywords: | ||
- infrastructure | ||
- harvester | ||
maintainers: | ||
- name: harvester | ||
name: harvester-cloud-provider | ||
type: application | ||
version: 105.0.1+up0.2.7 |
23 changes: 23 additions & 0 deletions
23
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/.helmignore
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,23 @@ | ||
# 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 | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
6 changes: 6 additions & 0 deletions
6
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/Chart.yaml
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,6 @@ | ||
apiVersion: v2 | ||
appVersion: v0.4.1 | ||
description: A Helm chart for kube-vip | ||
name: kube-vip | ||
type: application | ||
version: 0.4.2 |
74 changes: 74 additions & 0 deletions
74
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/templates/_helpers.tpl
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,74 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "kube-vip.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 "kube-vip.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 "kube-vip.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "kube-vip.labels" -}} | ||
helm.sh/chart: {{ include "kube-vip.chart" . }} | ||
{{ include "kube-vip.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "kube-vip.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "kube-vip.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "kube-vip.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "kube-vip.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Global system default registry | ||
*/}} | ||
{{- define "system_default_registry" -}} | ||
{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- end -}} | ||
{{- end -}} |
51 changes: 51 additions & 0 deletions
51
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/templates/daemonset.yaml
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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: {{ include "kube-vip.name" . }} | ||
namespace: {{ .Release.Namespace | default "kube-system" }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "kube-vip.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "kube-vip.selectorLabels" . | nindent 8 }} | ||
spec: | ||
containers: | ||
- args: | ||
- manager | ||
env: | ||
{{- if eq .Values.env.cp_enable "true" }} | ||
- name: vip_address | ||
value: {{ required "A valid config.address required!" .Values.config.address}} | ||
{{- end }} | ||
{{- with .Values.env }} | ||
{{- range $k, $v := . }} | ||
{{- $name := $k }} | ||
{{- $value := $v }} | ||
- name: {{ quote $name }} | ||
value: {{ quote $value }} | ||
{{- end }} | ||
{{- end }} | ||
image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
name: kube-vip | ||
resources: | ||
{{- toYaml .Values.resources | nindent 10 }} | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 10 }} | ||
hostNetwork: true | ||
serviceAccountName: {{ include "kube-vip.name" . }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
36 changes: 36 additions & 0 deletions
36
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/templates/rbac.yaml
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,36 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "kube-vip.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "kube-vip.labels" . | nindent 4 }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: | ||
rbac.authorization.kubernetes.io/autoupdate: "true" | ||
name: {{ include "kube-vip.name" . }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["services", "services/status", "nodes"] | ||
verbs: ["list","get","watch", "update"] | ||
- apiGroups: ["coordination.k8s.io"] | ||
resources: ["leases"] | ||
verbs: ["list", "get", "watch", "update", "create"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "kube-vip.name" . }} | ||
labels: | ||
{{- include "kube-vip.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "kube-vip.name" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "kube-vip.name" . }} | ||
namespace: {{ .Release.Namespace }} |
79 changes: 79 additions & 0 deletions
79
charts/harvester-cloud-provider/105.0.1+up0.2.7/charts/kube-vip/values.yaml
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,79 @@ | ||
# Default values for kube-vip. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
image: | ||
repository: rancher/mirrored-kube-vip-kube-vip-iptables | ||
pullPolicy: IfNotPresent | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "v0.6.0" | ||
|
||
config: | ||
address: "" | ||
|
||
env: | ||
vip_interface: "" | ||
vip_arp: "true" | ||
lb_enable: "true" | ||
lb_port: "6443" | ||
vip_cidr: "32" | ||
cp_enable: "false" | ||
svc_enable: "true" | ||
vip_leaderelection: "false" | ||
|
||
imagePullSecrets: [ ] | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
serviceAccount: | ||
# Specifies whether a service account should be created | ||
create: true | ||
# Annotations to add to the service account | ||
annotations: { } | ||
# The name of the service account to use. | ||
# If not set and create is true, a name is generated using the fullname template | ||
name: "" | ||
|
||
podAnnotations: { } | ||
|
||
podSecurityContext: { } | ||
# fsGroup: 2000 | ||
|
||
securityContext: | ||
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
|
||
resources: { } | ||
# We usually recommend not to specify default resources and to leave this as a conscious | ||
# choice for the user. This also increases chances charts run on environments with little | ||
# resources, such as Minikube. If you do want to specify resources, uncomment the following | ||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. | ||
# limits: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 128Mi | ||
|
||
nodeSelector: {} | ||
|
||
tolerations: | ||
- effect: NoSchedule | ||
key: node-role.kubernetes.io/control-plane | ||
operator: Exists | ||
affinity: { } | ||
# nodeAffinity: | ||
# requiredDuringSchedulingIgnoredDuringExecution: | ||
# nodeSelectorTerms: | ||
# - matchExpressions: | ||
# - key: node-role.kubernetes.io/master | ||
# operator: Exists | ||
# - matchExpressions: | ||
# - key: node-role.kubernetes.io/control-plane | ||
# operator: Exists | ||
|
||
global: | ||
cattle: | ||
systemDefaultRegistry: "" |
3 changes: 3 additions & 0 deletions
3
charts/harvester-cloud-provider/105.0.1+up0.2.7/ci/kind-values.yaml
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,3 @@ | ||
replicasCount: 1 | ||
# It's an existent but invalid kubeconfig, just for helm installation testing in kind | ||
cloudConfigPath: "/etc/kubernetes/admin.conf" |
23 changes: 23 additions & 0 deletions
23
charts/harvester-cloud-provider/105.0.1+up0.2.7/dependency_charts/kube-vip/.helmignore
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,23 @@ | ||
# 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 | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
9 changes: 9 additions & 0 deletions
9
charts/harvester-cloud-provider/105.0.1+up0.2.7/dependency_charts/kube-vip/Chart.yaml
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,9 @@ | ||
apiVersion: v2 | ||
appVersion: v0.8.4 | ||
description: A Helm chart for kube-vip | ||
icon: https://github.com/kube-vip/kube-vip/raw/main/kube-vip.png | ||
maintainers: | ||
- name: kube-vip | ||
name: kube-vip | ||
type: application | ||
version: 0.6.4 |
Oops, something went wrong.