mirror of https://git.rancher.io/charts
Syncing release-v2.7 to dev-v2.7
commit
148dc90125
Binary file not shown.
|
@ -0,0 +1,18 @@
|
||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/hidden: "true"
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.26.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux,windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0'
|
||||||
|
catalog.cattle.io/release-name: rancher-webhook
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 0.3.3
|
||||||
|
dependencies:
|
||||||
|
- condition: capi.enabled
|
||||||
|
name: capi
|
||||||
|
repository: ""
|
||||||
|
description: ValidatingAdmissionWebhook for Rancher types
|
||||||
|
name: rancher-webhook
|
||||||
|
version: 2.0.3+up0.3.3
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 0.0.0
|
||||||
|
name: capi
|
||||||
|
version: 0.0.0
|
|
@ -0,0 +1,13 @@
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: webhook-service
|
||||||
|
annotations:
|
||||||
|
need-a-cert.cattle.io/secret-name: rancher-webhook-tls
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: https
|
||||||
|
port: 443
|
||||||
|
targetPort: 8777
|
||||||
|
selector:
|
||||||
|
app: rancher-webhook
|
|
@ -0,0 +1,22 @@
|
||||||
|
{{- define "system_default_registry" -}}
|
||||||
|
{{- if .Values.global.cattle.systemDefaultRegistry -}}
|
||||||
|
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- "" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "rancher-webhook.labels" -}}
|
||||||
|
app: rancher-webhook
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "linux-node-tolerations" -}}
|
||||||
|
- key: "cattle.io/os"
|
||||||
|
value: "linux"
|
||||||
|
effect: "NoSchedule"
|
||||||
|
operator: "Equal"
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "linux-node-selector" -}}
|
||||||
|
kubernetes.io/os: linux
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,59 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: rancher-webhook
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: rancher-webhook
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: rancher-webhook
|
||||||
|
spec:
|
||||||
|
{{- if .Values.capi.enabled }}
|
||||||
|
volumes:
|
||||||
|
- name: tls
|
||||||
|
secret:
|
||||||
|
secretName: rancher-webhook-tls
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.hostNetwork }}
|
||||||
|
hostNetwork: true
|
||||||
|
{{- end }}
|
||||||
|
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
|
||||||
|
{{- if .Values.nodeSelector }}
|
||||||
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
tolerations: {{ include "linux-node-tolerations" . | nindent 6 }}
|
||||||
|
{{- if .Values.tolerations }}
|
||||||
|
{{ toYaml .Values.tolerations | indent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: STAMP
|
||||||
|
value: "{{.Values.stamp}}"
|
||||||
|
- name: ENABLE_CAPI
|
||||||
|
value: "{{.Values.capi.enabled}}"
|
||||||
|
- name: ENABLE_MCM
|
||||||
|
value: "{{.Values.mcm.enabled}}"
|
||||||
|
- name: NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
image: '{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}'
|
||||||
|
name: rancher-webhook
|
||||||
|
imagePullPolicy: "{{ .Values.image.imagePullPolicy }}"
|
||||||
|
ports:
|
||||||
|
- name: https
|
||||||
|
containerPort: 9443
|
||||||
|
- name: capi-https
|
||||||
|
containerPort: 8777
|
||||||
|
{{- if .Values.capi.enabled }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: tls
|
||||||
|
mountPath: /tmp/k8s-webhook-server/serving-certs
|
||||||
|
{{- end }}
|
||||||
|
serviceAccountName: rancher-webhook
|
||||||
|
{{- if .Values.priorityClassName }}
|
||||||
|
priorityClassName: "{{.Values.priorityClassName}}"
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: rancher-webhook
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: cluster-admin
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: rancher-webhook
|
||||||
|
namespace: {{.Release.Namespace}}
|
|
@ -0,0 +1,13 @@
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: rancher-webhook
|
||||||
|
namespace: cattle-system
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 443
|
||||||
|
targetPort: 9443
|
||||||
|
protocol: TCP
|
||||||
|
name: https
|
||||||
|
selector:
|
||||||
|
app: rancher-webhook
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: rancher-webhook
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: admissionregistration.k8s.io/v1
|
||||||
|
kind: ValidatingWebhookConfiguration
|
||||||
|
metadata:
|
||||||
|
name: rancher.cattle.io
|
||||||
|
---
|
||||||
|
apiVersion: admissionregistration.k8s.io/v1
|
||||||
|
kind: MutatingWebhookConfiguration
|
||||||
|
metadata:
|
||||||
|
name: rancher.cattle.io
|
|
@ -0,0 +1,22 @@
|
||||||
|
image:
|
||||||
|
repository: rancher/rancher-webhook
|
||||||
|
tag: v0.3.3
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
global:
|
||||||
|
cattle:
|
||||||
|
systemDefaultRegistry: ""
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
|
capi:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
mcm:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# tolerations for the webhook deployment. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ for more info
|
||||||
|
tolerations: []
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
## PriorityClassName assigned to deployment.
|
||||||
|
priorityClassName: ""
|
22
index.yaml
22
index.yaml
|
@ -12865,6 +12865,28 @@ entries:
|
||||||
- assets/rancher-vsphere-csi/rancher-vsphere-csi-2.1.000.tgz
|
- assets/rancher-vsphere-csi/rancher-vsphere-csi-2.1.000.tgz
|
||||||
version: 2.1.000
|
version: 2.1.000
|
||||||
rancher-webhook:
|
rancher-webhook:
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/hidden: "true"
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.26.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux,windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0'
|
||||||
|
catalog.cattle.io/release-name: rancher-webhook
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 0.3.3
|
||||||
|
created: "2023-04-21T12:21:09.922002-04:00"
|
||||||
|
dependencies:
|
||||||
|
- condition: capi.enabled
|
||||||
|
name: capi
|
||||||
|
repository: ""
|
||||||
|
description: ValidatingAdmissionWebhook for Rancher types
|
||||||
|
digest: 1ef4f80cdda914e9010c414a4aa57fd1a0d76d54bb4d38afee117cf49bc02f61
|
||||||
|
name: rancher-webhook
|
||||||
|
urls:
|
||||||
|
- assets/rancher-webhook/rancher-webhook-2.0.3+up0.3.3.tgz
|
||||||
|
version: 2.0.3+up0.3.3
|
||||||
- annotations:
|
- annotations:
|
||||||
catalog.cattle.io/certified: rancher
|
catalog.cattle.io/certified: rancher
|
||||||
catalog.cattle.io/hidden: "true"
|
catalog.cattle.io/hidden: "true"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
url: https://github.com/rancher/webhook/releases/download/v0.3.2/rancher-webhook-0.3.2.tgz
|
url: https://github.com/rancher/webhook/releases/download/v0.3.3/rancher-webhook-0.3.3.tgz
|
||||||
version: 2.0.2
|
version: 2.0.3
|
||||||
|
|
Loading…
Reference in New Issue