mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
Without that field, GKE 1.21 refuses to create the CRD with an error message that conversionReviewVersions is mandatory. conversionReviewVersions is a required field when creating apiextensions.k8s.io/v1 custom resource definitions. Webhooks are required to support at least one ConversionReview version understood by the current and previous API server. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/_print/#webhook-request-and-response
20 lines
693 B
YAML
20 lines
693 B
YAML
# The following patch enables conversion webhook for CRD
|
|
# CRD conversion requires k8s 1.13 or later.
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: runners.actions.summerwind.dev
|
|
spec:
|
|
conversion:
|
|
strategy: Webhook
|
|
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
|