chart: Fix webhook config installation error
This fixes the below error on installing the chart: ``` Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(MutatingWebhookConfiguration.webhooks[0]): missing required field "admissionReviewVersions" in io.k8s.api.admissionregistration.v1.MutatingWebhook, ValidationError(MutatingWebhookConfiguration.webhooks[1]): missing required field "admissionReviewVersions" in io.k8s.api.admissionregistration.v1.MutatingWebhook, ValidationError(MutatingWebhookConfiguration.webhooks[2]): missing required field "admissionReviewVersions" in io.k8s.api.admissionregistration.v1.MutatingWebhook, ValidationError(MutatingWebhookConfiguration.webhooks[3]): missing required field "admissionReviewVersions" in io.k8s.api.admissionregistration.v1.MutatingWebhook] ``` Ref #144
This commit is contained in:
		
							parent
							
								
									167c5b4dc9
								
							
						
					
					
						commit
						34d9c6d4db
					
				|  | @ -8,7 +8,9 @@ metadata: | |||
|   annotations: | ||||
|     cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "actions-runner-controller.servingCertName" . }} | ||||
| webhooks: | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -26,7 +28,9 @@ webhooks: | |||
|     resources: | ||||
|     - runners | ||||
|   sideEffects: None | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -44,7 +48,9 @@ webhooks: | |||
|     resources: | ||||
|     - runnerdeployments | ||||
|   sideEffects: None | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -62,7 +68,9 @@ webhooks: | |||
|     resources: | ||||
|     - runnerreplicasets | ||||
|   sideEffects: None | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -91,7 +99,9 @@ metadata: | |||
|   annotations: | ||||
|     cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "actions-runner-controller.servingCertName" . }} | ||||
| webhooks: | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -109,7 +119,9 @@ webhooks: | |||
|     resources: | ||||
|     - runners | ||||
|   sideEffects: None | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  | @ -127,7 +139,9 @@ webhooks: | |||
|     resources: | ||||
|     - runnerdeployments | ||||
|   sideEffects: None | ||||
| - clientConfig: | ||||
| - admissionReviewVersions: | ||||
|   - v1beta1 | ||||
|   clientConfig: | ||||
|     service: | ||||
|       name: {{ include "actions-runner-controller.webhookServiceName" . }} | ||||
|       namespace: {{ .Release.Namespace }} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue