From 4d800ffbfb70895eab65cf8859dce2962e38a076 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Thu, 26 Mar 2026 13:20:19 +0100 Subject: [PATCH] convert deploy manifests to kustomization format Adds kustomization.yaml to enforce explicit resource ordering (namespace before deployment/service). Updates CI to use kubectl apply -k instead of kubectl apply -f. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/kubernetes-deploy.yaml | 2 +- deploy/kustomization.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 deploy/kustomization.yaml diff --git a/.gitea/workflows/kubernetes-deploy.yaml b/.gitea/workflows/kubernetes-deploy.yaml index 0e7f777..456f7db 100644 --- a/.gitea/workflows/kubernetes-deploy.yaml +++ b/.gitea/workflows/kubernetes-deploy.yaml @@ -106,4 +106,4 @@ jobs: kubectl auth whoami kubectl get ns - kubectl apply -f deploy/ + kubectl apply -k deploy/ diff --git a/deploy/kustomization.yaml b/deploy/kustomization.yaml new file mode 100644 index 0000000..ed9bace --- /dev/null +++ b/deploy/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - namespace_gateway-cert-operator-system.yaml + - serviceaccount_gateway-cert-operator.yaml + - clusterrole_gateway-cert-operator.yaml + - clusterrolebinding_gateway-cert-operator.yaml + - deployment_gateway-cert-operator.yaml + - service_gateway-cert-operator-metrics.yaml \ No newline at end of file