Skip to content

Commit

Permalink
propagate ownership/association labels to jobs and cronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Mar 21, 2019
1 parent 3c045a8 commit 531bbcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/kapp/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ ownershipLabelRules:
- apiVersionKindMatcher: {apiVersion: apps/v1beta1, kind: StatefulSet}
- apiVersionKindMatcher: {apiVersion: extensions/v1beta1, kind: StatefulSet}
- path: [spec, template, metadata, labels]
resourceMatchers:
- apiVersionKindMatcher: {apiVersion: batch/v1, kind: Job}
- apiVersionKindMatcher: {apiVersion: batch/v1beta1, kind: Job}
- apiVersionKindMatcher: {apiVersion: batch/v2alpha1, kind: Job}
- path: [spec, jobTemplate, spec, template, metadata, labels]
resourceMatchers:
- apiVersionKindMatcher: {apiVersion: batch/v1beta1, kind: CronJob}
- apiVersionKindMatcher: {apiVersion: batch/v2alpha1, kind: CronJob}
labelScopingRules:
- path: [spec, selector]
resourceMatchers:
Expand Down

0 comments on commit 531bbcc

Please sign in to comment.