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
26 changes: 26 additions & 0 deletions package/config/kapp-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
---
apiVersion: kapp.k14s.io/v1alpha1
kind: Config

minimumRequiredVersion: 0.50.0

#! Rebase rules explicitly define how kapp should merge resources during an update.
#! See more about the resource merge method: https://carvel.dev/kapp/docs/latest/merge-method.
rebaseRules:

#! Kubernetes automatically fills in the rules of aggregated ClusterRoles.
#! We want to keep that configuration between upgrades.
- path: [rules]
type: copy
sources: [existing]
resourceMatchers:
- apiVersionKindMatcher:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole

#! If the synchronization of a PackageInstall or App resource has been manually paused.
- path: [spec, paused]
type: copy
sources: [new, existing]
resourceMatchers:
- apiVersionKindMatcher: {apiVersion: packaging.carvel.dev/v1alpha1, kind: PackageInstall}
- apiVersionKindMatcher: {apiVersion: kappctrl.k14s.io/v1alpha1, kind: App}

#! These rules define which fields should be removed before kapp performs a diff against the last applied resource.
diffAgainstLastAppliedFieldExclusionRules:

- path: [metadata, annotations]
type: copy
sources: [existing]
resourceMatchers:
- apiVersionKindMatcher:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
10 changes: 10 additions & 0 deletions package/config/roles/deliverable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: deliverable
aggregationRule:
clusterRoleSelectors:
- matchLabels:
apps.kadras.io/aggregate-to-deliverable: "true"
rules: []
10 changes: 10 additions & 0 deletions package/config/roles/workload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: workload
aggregationRule:
clusterRoleSelectors:
- matchLabels:
apps.kadras.io/aggregate-to-workload: "true"
rules: []