Skip to content

Commit

Permalink
Fine tunning kapp rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoralespou committed May 3, 2024
1 parent 6bc34db commit 3c1fe49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
17 changes: 5 additions & 12 deletions overlays/gitops-app/src/bundle/config/kapp/kapp-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,16 @@ rebaseRules:
type: copy
sources: [existing, new]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }
- paths:
- [metadata, annotations, "kopf.zalando.org/last-handled-configuration"]
- [status]
type: copy
sources: [existing]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }
diffAgainstLastAppliedFieldExclusionRules:
- paths:
- [metadata, annotations, "kopf.zalando.org/last-handled-configuration"]
- [status]
- paths:
- [spec, syncPeriod]
type: copy
sources: [existing, new]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }
- apiVersionKindMatcher: { apiVersion: kappctrl.k14s.io/v1alpha1, kind: App }
19 changes: 2 additions & 17 deletions overlays/portal-app/src/bundle/config/kapp/kapp-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
apiVersion: kapp.k14s.io/v1alpha1
kind: Config
rebaseRules:
- paths:
- [spec, rules, { allIndexes: true }, reclaimPolicy]
type: copy
sources: [existing, new]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }
- paths:
- [metadata, annotations, "kopf.zalando.org/last-handled-configuration"]
- [status]
type: copy
sources: [existing]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }
diffAgainstLastAppliedFieldExclusionRules:
- paths:
- [metadata, annotations, "kopf.zalando.org/last-handled-configuration"]
- [status]
diffAgainstExistingFieldExclusionRules:
- path: [status]
resourceMatchers:
- apiVersionKindMatcher: { apiVersion: training.educates.dev/v1beta1, kind: TrainingPortal }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretCopier }
- apiVersionKindMatcher: { apiVersion: secrets.educates.dev/v1beta1, kind: SecretInjector }

0 comments on commit 3c1fe49

Please sign in to comment.