Remove unused things, make secret fields a string

This commit is contained in:
SeanOMik 2023-04-02 14:05:38 -04:00
parent 2a4da01d16
commit ca8f22db3f
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
7 changed files with 13 additions and 66 deletions

View File

@ -1,4 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- traefik - ./traefik

View File

@ -1,3 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: traefik
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:

View File

@ -1,10 +0,0 @@
apiVersion: viaduct.ai/v1
kind: ksops
metadata:
name: traefik-secret-generator
annotations:
config.kubernetes.io/function: |
exec:
path: ksops
files:
- ./traefik-secrets.enc.yaml

View File

@ -1,8 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
#generators:
#- ksops.yaml
resources: resources:
- traefik-secrets.sops.yaml - ./traefik-secrets.sops.yaml
- helm-repository.yaml - ./helm-repository.yaml
- helm-release.yaml - ./helm-release.yaml

View File

@ -13,8 +13,8 @@ sops:
azure_kv: [] azure_kv: []
hc_vault: [] hc_vault: []
age: [] age: []
lastmodified: "2023-04-02T17:15:20Z" lastmodified: "2023-04-02T18:05:11Z"
mac: ENC[AES256_GCM,data:aJlH+CJloGHMBlbWns9cCmNIUGSJPG43QnJdxEFDArUwRSQRtpM8IiCrIK/RrsP3GHzvZkbNIMSoFeXDq/KfW2ZbGIrDuvGjSwpKSd/tV40NulSOZILZViTV5FNrIO4q05spv0QoGsPcF9CSvRGpQ98w5RbPxQm6U6aYl6cM+7c=,iv:yhu+Zh9ksE2A0MlqDTknNcywpJhxjgTAD7a7VkRqslA=,tag:XGTJaPkAZyQeKG+xsUg0/Q==,type:str] mac: ENC[AES256_GCM,data:6e5z7+3l0Sn+Lw9vibQ//SgYMskY+TiRbMYX18JuIT+dCJHN3fz0FZCIUSTJXDIXv0SqHSEAgVpMCvyWwPoSgfeIc/3sKKKZ33yP4tv8rdpYBaDz7zXXY3NYqOk8BFeIdl6mzU6traIyzxAQ27rjO6AI0fEFSu5bY4uP9lFPtdc=,iv:sJ2iTk3P83NM9I3atYZvkYJg42IAIO29L7nMt37Lazk=,tag:1UtotsQ9VqBC66fI6kVr0g==,type:str]
pgp: pgp:
- created_at: "2023-04-02T17:33:57Z" - created_at: "2023-04-02T17:33:57Z"
enc: | enc: |

View File

@ -1,45 +0,0 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: cluster-apps
namespace: flux-system
spec:
interval: 30m
path: ./cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
patches:
- patch: |-
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: not-used
spec:
decryption:
provider: sops
secretRef:
name: sops-gpg
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
target:
group: kustomize.toolkit.fluxcd.io
version: v1beta2
kind: Kustomization
labelSelector: substitution.flux.home.arpa/disabled notin (true)

View File

@ -1,6 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- gotk-components.yaml - ./gotk-components.yaml
- gotk-sync.yaml - ./gotk-sync.yaml
#- apps.yaml