Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/labels/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ resources:
- provider-upjet-unifi.yaml
- unifi.yaml
- aws.yaml
- kyverno-policies.yaml
- gitops-tenant-template.yaml
- platform-template.yaml
- go-template.yaml
Expand Down
22 changes: 22 additions & 0 deletions deploy/labels/kyverno-policies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Issue labels for devantler-tech/kyverno-policies. The canonical org taxonomy (22 labels)
# is appended to every IssueLabels by the shared patch in kustomization.yaml; this
# file adds only kyverno-policies's repo-specific extras. See ../README.md.
apiVersion: repo.github.m.upbound.io/v1alpha1
kind: IssueLabels
metadata:
name: kyverno-policies
annotations:
crossplane.io/external-name: kyverno-policies
spec:
managementPolicies:
- Observe
- Create
- Update
- LateInitialize
forProvider:
repository: kyverno-policies
# No repo-specific extras; the shared patch supplies the full canonical set.
label: []
providerConfigRef:
kind: ProviderConfig
name: default
1 change: 1 addition & 0 deletions deploy/repositories/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resources:
- provider-upjet-unifi.yaml
- unifi.yaml
- aws.yaml
- kyverno-policies.yaml
Comment thread
devantler marked this conversation as resolved.
- gitops-tenant-template.yaml
- platform-template.yaml
- go-template.yaml
Expand Down
51 changes: 51 additions & 0 deletions deploy/repositories/kyverno-policies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: repo.github.m.upbound.io/v1alpha1
kind: Repository
metadata:
name: kyverno-policies
annotations:
# NET-NEW repo (not an adoption). The provider's create POST cannot send the
# org's 5 required custom properties (no CRD field), so it 422s until the
# repo is bootstrapped ONCE by an org admin with `gh api -X POST
# /orgs/devantler-tech/repos` including `custom_properties` (Type=
# Infrastructure + the 4 defaults) — see platform#2325. This CR then
# observes + adopts it and manages it declaratively from there on.
# external-name pinned so the create/observe target is unambiguous.
crossplane.io/external-name: kyverno-policies
spec:
# Same all-except-Delete policy as every other managed repo (omitting Delete
# guarantees Crossplane can never delete a real GitHub repository).
managementPolicies:
- Observe
- Create
- Update
- LateInitialize
forProvider:
name: kyverno-policies
description: "Shared Kyverno policy library for the devantler-tech platforms — the single source the platform and platform-template consume instead of vendoring per-repo copies."
visibility: public
hasIssues: true
Comment thread
devantler marked this conversation as resolved.
# Shared kustomization patch supplies the squash-only merge policy +
# webCommitSignoffRequired; nothing repo-specific needed here.
providerConfigRef:
kind: ProviderConfig
name: default
---
apiVersion: repo.github.m.upbound.io/v1alpha1
kind: DefaultBranch
metadata:
name: kyverno-policies
annotations:
# The Repository CRD's defaultBranch field is deprecated; manage the
# already-existing main branch through the dedicated resource instead.
crossplane.io/external-name: kyverno-policies
spec:
managementPolicies:
- Observe
- Create
- Update
- LateInitialize
forProvider:
branch: main
providerConfigRef:
kind: ProviderConfig
name: default
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Team → repository access. No external-name: this grant does not exist yet, so it is
# Created (full management except Delete) rather than adopted.
apiVersion: team.github.m.upbound.io/v1alpha1
kind: TeamRepository
metadata:
name: maintainers-kyverno-policies
spec:
managementPolicies: ["Observe", "Create", "Update", "LateInitialize"]
forProvider:
teamIdRef:
name: maintainers
repository: kyverno-policies
permission: maintain
providerConfigRef:
kind: ProviderConfig
name: default
1 change: 1 addition & 0 deletions deploy/team-repositories/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ resources:
- grant-maintainers-on-homebrew-tap.yaml
- grant-maintainers-on-provider-upjet-unifi.yaml
- grant-maintainers-on-aws.yaml
- grant-maintainers-on-kyverno-policies.yaml