local-path patch

This commit is contained in:
azykov@mail.ru
2026-07-21 09:15:08 +03:00
parent 86563f0249
commit f825025722
6 changed files with 32 additions and 10 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storage-classes.yaml
- storage-class-local-path-patch.yaml
- storage-class-longhorn-retain.yaml
@@ -0,0 +1,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: local-path-defaultclass-patch
namespace: flux-system
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: flux-system
path: ./clusters/base/infra/patches/storage-class-local-path-patch
prune: false # its a local-storage-provisioner object, dont let flux destroy it
wait: true
@@ -1,19 +1,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: storage-classes
name: local-path
namespace: flux-system
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: flux-system
path: ./clusters/base/infra/storage-classes
path: ./clusters/base/infra/storage-class-longhorn-retain
prune: true
wait: true
dependsOn:
- name: namespaces
decryption:
provider: sops
secretRef:
name: sops-age