Merge pull request #1127 from dramich/webhookin

Bump webhook version
pull/1153/head
actions 2021-04-19 22:35:49 +00:00
parent bd81e588fd
commit e436ddee7e
10 changed files with 115 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,11 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/hidden: "true"
catalog.cattle.io/namespace: cattle-system
catalog.cattle.io/os: linux
catalog.cattle.io/release-name: rancher-webhook
apiVersion: v2
appVersion: 0.1.0
description: ValidatingAdmissionWebhook for Rancher types
name: rancher-webhook
version: 0.1.000-rc02

View File

@ -0,0 +1,7 @@
{{- define "system_default_registry" -}}
{{- if .Values.global.cattle.systemDefaultRegistry -}}
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
{{- else -}}
{{- "" -}}
{{- end -}}
{{- end -}}

View File

@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rancher-webhook
spec:
selector:
matchLabels:
app: rancher-webhook
template:
metadata:
labels:
app: rancher-webhook
spec:
containers:
- env:
- 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
serviceAccountName: rancher-webhook

View File

@ -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}}

View File

@ -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

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: rancher-webhook

View File

@ -0,0 +1,19 @@
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: rancher.cattle.io
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: rancher-webhook
namespace: cattle-system
path: /v1/webhook/validation
port: 443
failurePolicy: Ignore
matchPolicy: Equivalent
name: rancher.cattle.io
sideEffects: None
timeoutSeconds: 10

View File

@ -0,0 +1,8 @@
image:
repository: rancher/rancher-webhook
tag: v0.1.0-rc2
imagePullPolicy: IfNotPresent
global:
cattle:
systemDefaultRegistry: ""

View File

@ -8913,6 +8913,21 @@ entries:
urls:
- assets/rancher-webhook/rancher-webhook-0.2.0-alpha01-rc01.tgz
version: 0.2.0-alpha01-rc01
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/hidden: "true"
catalog.cattle.io/namespace: cattle-system
catalog.cattle.io/os: linux
catalog.cattle.io/release-name: rancher-webhook
apiVersion: v2
appVersion: 0.1.0
created: "2021-04-19T22:35:49.283588369Z"
description: ValidatingAdmissionWebhook for Rancher types
digest: afc6419154facc66d3fce4dd0073c48202a92516d4802b8af08c279da57a4f44
name: rancher-webhook
urls:
- assets/rancher-webhook/rancher-webhook-0.1.000-rc02.tgz
version: 0.1.000-rc02
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/hidden: "true"