Skip to content

Commit

Permalink
Added scale up component for clair-postgres and clair-app resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhra Deshpande committed Oct 4, 2024
2 parents 04e7483 + e2ffefe commit 2f22cbc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: clair-app
spec:
replicas: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: clair-postgres
spec:
replicas: 2
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patchesStrategicMerge:
- ./clair.deployment.patch.yaml
- ./clair-pg-scale-up.patch.yaml
- ./clair.deployment-scale-up.patch.yaml
components:
- ../base
2 changes: 0 additions & 2 deletions pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ func KustomizationFor(
if ctx.NeedsClairPgUpgrade {
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
componentPaths = append(componentPaths, "../components/clairpgupgrade/scale-down-clair")
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
componentPaths = append(componentPaths, "../components/clairpgupgrade/scale-up-clair")
} else {
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}
Expand Down

0 comments on commit 2f22cbc

Please sign in to comment.