kustomization for secret-claim-operator

Operator was failing due to missing pull secret.
Kustomize seems like the fastest way to patch, upstream is dead anyway.
This commit is contained in:
2025-12-29 01:57:27 +02:00
parent 5136e5cfaf
commit 925a08cd68
3 changed files with 24 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ metadata:
spec: spec:
project: k-space.ee project: k-space.ee
source: source:
repoURL: https://github.com/codemowers/operatorlib repoURL: 'git@git.k-space.ee:k-space/kube.git'
path: samples/secret-claim-operator path: secret-claim-operator
targetRevision: HEAD targetRevision: HEAD
destination: destination:
server: 'https://kubernetes.default.svc' server: 'https://kubernetes.default.svc'

View File

@@ -1 +0,0 @@
argocd/appications/secret-claim-operator.yaml

View File

@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: secret-claim-operator
resources:
- https://raw.githubusercontent.com/codemowers/operatorlib/refs/heads/main/samples/secret-claim-operator/templates/secret-claim-operator-crds.yaml
- https://raw.githubusercontent.com/codemowers/operatorlib/refs/heads/main/samples/secret-claim-operator/templates/secret-claim-operator-deployment.yaml
- https://raw.githubusercontent.com/codemowers/operatorlib/refs/heads/main/samples/secret-claim-operator/templates/secret-claim-operator-rbac.yaml
patches:
- patch: |-
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: secret-claim-operator
namespace: secret-claim-operator
spec:
template:
spec:
imagePullSecrets:
- $patch: delete