update plugin api version.

Signed-off-by: JaredTan95 <jian.tan@daocloud.io>
This commit is contained in:
JaredTan95
2020-12-15 12:22:48 +08:00
parent c71a4534a0
commit 36bdcca735
2 changed files with 26 additions and 26 deletions

View File

@@ -78,7 +78,7 @@ subjects:
name: another name: another
namespace: random namespace: random
--- ---
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration kind: ValidatingWebhookConfiguration
metadata: metadata:
name: example name: example
@@ -94,21 +94,21 @@ webhooks:
name: svc2 name: svc2
namespace: system namespace: system
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd
`, `,
// Import note: The namespace transformer is in charge of // Import note: The namespace transformer is in charge of
// the metadata.namespace field. The namespace transformer SHOULD // the metadata.namespace field. The namespace transformer SHOULD
// NOT modify neither the "namespace" subfield within the // NOT modify neither the "namespace" subfield within the
// ClusterRoleBinding.subjects field nor the "namespace" // ClusterRoleBinding.subjects field nor the "namespace"
// subfield in the ValidatingWebhookConfiguration.webhooks field. // subfield in the ValidatingWebhookConfiguration.webhooks field.
// This is the role of the namereference Transformer to handle // This is the role of the namereference Transformer to handle
// object reference changes (prefix/suffix and namespace). // object reference changes (prefix/suffix and namespace).
// For use cases involving simultaneous change of name and namespace, // For use cases involving simultaneous change of name and namespace,
// refer to namespaces tests in pkg/target test suites. // refer to namespaces tests in pkg/target test suites.
` `
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@@ -159,7 +159,7 @@ subjects:
name: another name: another
namespace: random namespace: random
--- ---
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration kind: ValidatingWebhookConfiguration
metadata: metadata:
name: example name: example
@@ -175,7 +175,7 @@ webhooks:
namespace: system namespace: system
name: example2 name: example2
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd

View File

@@ -37,7 +37,7 @@ spec:
ports: ports:
- port: 7002 - port: 7002
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd
@@ -67,7 +67,7 @@ spec:
ports: ports:
- port: 7002 - port: 7002
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd
@@ -106,7 +106,7 @@ spec:
- image: myapp - image: myapp
name: main name: main
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd
@@ -134,7 +134,7 @@ spec:
- image: myapp - image: myapp
name: test-main name: test-main
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: crd name: crd