From 7c87b769e9eac4e5c37ae8e5b15293147faca040 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Thu, 28 Nov 2024 12:14:39 +0530 Subject: [PATCH] Fix tls.crt: no such file or directory watcher-operator-controller-manager is entering into crashloopbackoff state due to missing /tmp/k8s-webhook-server/serving-certs/tls.crt. Based on the suggestion https://github.com/kubernetes-sigs/kubebuilder/issues/1501#issuecomment-1002478317, it fixes the issue. Signed-off-by: Chandan Kumar --- config/crd/kustomization.yaml | 4 ++-- config/default/kustomization.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 116de32..0a448e1 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -27,5 +27,5 @@ patches: # [WEBHOOK] To enable webhook, uncomment the following section # the following config is for teaching kustomize how to do kustomization for CRDs. -#configurations: -#- kustomizeconfig.yaml +configurations: +- kustomizeconfig.yaml diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index 0defb13..d8f571d 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -20,7 +20,7 @@ resources: - ../manager # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in # crd/kustomization.yaml -#- ../webhook +- ../webhook # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required. #- ../certmanager # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. @@ -34,7 +34,7 @@ patches: # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in # crd/kustomization.yaml -#- path: manager_webhook_patch.yaml +- path: manager_webhook_patch.yaml # [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. # Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.