forked from stolostron/multicloud-operators-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stolostron#367 from zhiweiyin318/fix-webhook
fix webhook cert rotation
- Loading branch information
Showing
24 changed files
with
1,017 additions
and
1,049 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
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
211 changes: 0 additions & 211 deletions
211
...foundation/resources/crds/cluster.open-cluster-management.io_mirroredmanagedclusters.yaml
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
deploy/foundation/hub/resources/webhook/kustomization.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,11 @@ | ||
resources: | ||
- webhook.yaml | ||
- webhook-service.yaml | ||
- webhook-validating-config.yaml | ||
|
||
images: | ||
- name: foundation-webhook | ||
newName: quay.io/open-cluster-management/multicloud-manager | ||
newTag: latest | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
17 changes: 17 additions & 0 deletions
17
deploy/foundation/hub/resources/webhook/webhook-service.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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
"service.beta.openshift.io/serving-cert-secret-name": foundation-webhook | ||
labels: | ||
app: foundation-webhook | ||
name: foundation-webhook | ||
namespace: open-cluster-management | ||
spec: | ||
ports: | ||
- port: 443 | ||
protocol: TCP | ||
targetPort: 8000 | ||
selector: | ||
app: foundation-webhook | ||
type: ClusterIP |
45 changes: 45 additions & 0 deletions
45
deploy/foundation/hub/resources/webhook/webhook-validating-config.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,45 @@ | ||
# Copyright Contributors to the Open Cluster Management project | ||
|
||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
annotations: | ||
service.beta.openshift.io/inject-cabundle: "true" | ||
labels: | ||
app: foundation-webhook | ||
name: foundation-validating-webhook | ||
webhooks: | ||
- name: ocm.validating.webhook.admission.open-cluster-management.io | ||
admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: foundation-webhook | ||
namespace: open-cluster-management | ||
path: /validating | ||
port: 443 | ||
failurePolicy: Fail | ||
matchPolicy: Equivalent | ||
rules: | ||
- apiGroups: | ||
- hive.openshift.io | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
apiVersions: | ||
- "v1" | ||
resources: | ||
- clusterdeployments | ||
- clusterpools | ||
scope: '*' | ||
- apiGroups: | ||
- cluster.open-cluster-management.io | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
apiVersions: | ||
- "*" | ||
resources: | ||
- managedclusters | ||
sideEffects: None | ||
timeoutSeconds: 10 |
Oops, something went wrong.