44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
#
|
|
# Copyright (c) 2019-2021 Red Hat, Inc.
|
|
# This program and the accompanying materials are made
|
|
# available under the terms of the Eclipse Public License 2.0
|
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Red Hat, Inc. - initial API and implementation
|
|
#
|
|
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: che-operator
|
|
app.kubernetes.io/instance: che
|
|
app.kubernetes.io/name: che
|
|
app.kubernetes.io/part-of: che.eclipse.org
|
|
name: org.eclipse.che
|
|
webhooks:
|
|
- admissionReviewVersions:
|
|
- v1
|
|
- v1beta1
|
|
clientConfig:
|
|
service:
|
|
name: che-operator-service
|
|
namespace: eclipse-che
|
|
path: /mutate-org-eclipse-che-v2-checluster
|
|
failurePolicy: Fail
|
|
name: mchecluster.kb.io
|
|
rules:
|
|
- apiGroups:
|
|
- org.eclipse.che
|
|
apiVersions:
|
|
- v2
|
|
operations:
|
|
- CREATE
|
|
- UPDATE
|
|
resources:
|
|
- checlusters
|
|
sideEffects: None
|