Skip to content

Commit

Permalink
convert version from v1beta1 to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Mar 1, 2022
1 parent f41b268 commit 1f88172
Show file tree
Hide file tree
Showing 9 changed files with 13,928 additions and 13,385 deletions.
4 changes: 2 additions & 2 deletions config/crd/patches/cainjection_in_functionmeshes.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions config/crd/patches/cainjection_in_functions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions config/crd/patches/cainjection_in_sinks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions config/crd/patches/cainjection_in_sources.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand Down
22 changes: 13 additions & 9 deletions config/crd/patches/webhook_in_functionmeshes.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: functionmeshes.compute.functionmesh.io
spec:
conversion:
strategy: Webhook
webhookClientConfig:
webhook:
conversionReviewVersions:
- v1
- v1beta1
clientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
22 changes: 13 additions & 9 deletions config/crd/patches/webhook_in_functions.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: functions.compute.functionmesh.io
spec:
conversion:
strategy: Webhook
webhookClientConfig:
webhook:
conversionReviewVersions:
- v1
- v1beta1
clientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
22 changes: 13 additions & 9 deletions config/crd/patches/webhook_in_sinks.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: sinks.compute.functionmesh.io
spec:
conversion:
strategy: Webhook
webhookClientConfig:
webhook:
conversionReviewVersions:
- v1
- v1beta1
clientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
22 changes: 13 additions & 9 deletions config/crd/patches/webhook_in_sources.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
# CRD conversion requires k8s 1.16 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: sources.compute.functionmesh.io
spec:
conversion:
strategy: Webhook
webhookClientConfig:
webhook:
conversionReviewVersions:
- v1
- v1beta1
clientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert
port: 443 # added this, used 443 bc it's the default from the k8s docs
Loading

0 comments on commit 1f88172

Please sign in to comment.