Skip to content

Commit

Permalink
Updating deprecated kustomization fields. (#1189)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoni Bettan <[email protected]>
  • Loading branch information
ybettan authored Aug 28, 2024
1 parent b19efd2 commit cf53957
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 20 deletions.
12 changes: 7 additions & 5 deletions config/default-hub/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ namespace: openshift-kmm-hub
namePrefix: kmm-operator-hub-

# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/name: kmm-hub
app.kubernetes.io/component: kmm-hub
app.kubernetes.io/part-of: kmm

resources:
- ../deploy-hub
Expand All @@ -19,4 +15,10 @@ components:
- ../webhook-cert

configurations:
- kustomizeconfig.yaml
- kustomizeconfig.yaml
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm-hub
app.kubernetes.io/name: kmm-hub
app.kubernetes.io/part-of: kmm
10 changes: 6 additions & 4 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ namespace: openshift-kmm
namePrefix: kmm-operator-

# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/name: kmm
app.kubernetes.io/component: kmm
app.kubernetes.io/part-of: kmm

configurations:
- kustomizeconfig.yaml
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm
app.kubernetes.io/name: kmm
app.kubernetes.io/part-of: kmm
6 changes: 6 additions & 0 deletions config/manifests-hub/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ resources:
- ../olm-hub
- ../samples-hub
- ../scorecard
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm-hub
app.kubernetes.io/name: kmm-hub
app.kubernetes.io/part-of: kmm
6 changes: 6 additions & 0 deletions config/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ resources:
- ../olm
- ../samples
- ../scorecard
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm
app.kubernetes.io/name: kmm
app.kubernetes.io/part-of: kmm
10 changes: 6 additions & 4 deletions config/olm-hub/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ kind: Kustomization
namePrefix: kmm-operator-hub-

# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/name: kmm-hub
app.kubernetes.io/component: kmm-hub
app.kubernetes.io/part-of: kmm

# These resources constitute the fully configured set of manifests
# used to generate the 'manifests/' directory in a bundle.
resources:
- ../deploy-hub
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm-hub
app.kubernetes.io/name: kmm-hub
app.kubernetes.io/part-of: kmm
12 changes: 7 additions & 5 deletions config/olm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ kind: Kustomization
namePrefix: kmm-operator-

# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/name: kmm
app.kubernetes.io/component: kmm
app.kubernetes.io/part-of: kmm

# These resources constitute the fully configured set of manifests
# used to generate the 'manifests/' directory in a bundle.
resources:
- ../deploy
- ../deploy
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kmm
app.kubernetes.io/name: kmm
app.kubernetes.io/part-of: kmm
6 changes: 4 additions & 2 deletions config/webhook-server/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ kind: Kustomization
resources:
- deployment.yaml

commonLabels:
app.kubernetes.io/component: webhook-server

images:
- name: webhook-server
newName: quay.io/edge-infrastructure/kernel-module-management-webhook-server
newTag: latest
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: webhook-server

0 comments on commit cf53957

Please sign in to comment.