Files
homelab/k8s-ng/apps/openartifact/kustomization.yaml
T
ab 01b598a285 Make OpenArtifact policy application extensible
Move publisher manifests into a dedicated policies directory and mount them
through a separate Kustomize-generated ConfigMap. Apply all mounted YAML files
in filename order instead of hard-coding the WinGet manifest and seven objects.
Require a nonempty successful response for each manifest and fail the PostSync
hook on partial or malformed results. Keep SSO secret substitution separate.

Document registration, ordering and explicit revocation. New publishers require
only a policy file and a ConfigMap files entry, without Python or Job changes.

Validation: four Python unit tests passed, including arbitrary object counts,
manifest discovery and error handling. Rendered ConfigMaps and the PostSync Job
with kubectl kustomize; full Helm chart rendering and live application were not
performed.
2026-12-02 03:59:15 +02:00

31 lines
602 B
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openartifact
resources:
- db-secret.yaml
- secrets.yaml
- oidc-client.yaml
- sso-job.yaml
configMapGenerator:
- name: openartifact-sso
files:
- sso.yaml
- apply-sso.py
- name: openartifact-policies
files:
- policies/winget-publisher.yaml
helmCharts:
- name: openartifact
repo: https://openartifact.github.io/helm-charts
version: 0.22.0
releaseName: openartifact
namespace: openartifact
valuesFile: values.yaml
skipTests: true
patches:
- path: hostpath.yaml