Skip to content

Commit

Permalink
Merge branch 'quay:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelalang authored Oct 8, 2024
2 parents f2c87cc + 83828f5 commit b89b26b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 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,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patchesStrategicMerge:
- ./clair.deployment.patch.yaml
resources:
- "../base"
- ./clair-pg-scale-up.patch.yaml
- ./clair.deployment-scale-up.patch.yaml
components:
- ../base
16 changes: 16 additions & 0 deletions kustomize/components/mirror/mirror.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ spec:
name: extra-ca-certs
- secret:
name: quay-config-tls
- name: postgres-certs
projected:
sources:
- secret:
name: postgresql-ca
optional: true
- secret:
name: postgresql-client-certs
optional: true
- name: postgres-certs-store
emptyDir:
sizeLimit: 5Mi
initContainers:
- name: quay-mirror-init
image: quay.io/projectquay/quay:latest
Expand Down Expand Up @@ -99,6 +111,10 @@ spec:
- name: extra-ca-certs
readOnly: true
mountPath: /conf/stack/extra_ca_certs
- name: postgres-certs
mountPath: /run/secrets/postgresql
- name: postgres-certs-store
mountPath: /.postgresql
resources:
requests:
cpu: 500m
Expand Down
3 changes: 2 additions & 1 deletion pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,9 @@ func KustomizationFor(
if ctx.NeedsClairPgUpgrade {
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
componentPaths = append(componentPaths, "../components/clairpgupgrade/scale-down-clair")
} else {
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}

images := []types.Image{}
Expand Down

0 comments on commit b89b26b

Please sign in to comment.