Details
Description
In operator version 3.7.x we introduced a new component called clairpostgres which determines whether the database for Clair will be managed or unmanaged. However, volume overrides were left on the clair component, which is not intuitive. The following CRD does not work:
- kind: clairpostgres managed: true overrides: volumeSize: 70Gi ... - lastTransitionTime: '2022-08-18T01:25:13Z' lastUpdateTime: '2022-08-18T01:25:13Z' message: >- invalid overrides: component clairpostgres does not support volumeSize overrides
But this one does:
component spec: components: - kind: clair managed: true overrides: volumeSize: 100Gi - kind: postgres managed: true overrides: volumeSize: 100Gi ~~~ $ oc get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE example-registry-clair-postgres Bound pvc-2c6ad527-76b5-4c2c-8e66-7b635084eb00 100Gi RWO gp2 54s example-registry-quay-database Bound pvc-abf0e335-4065-4a58-bc9d-bf427a76cebc 100Gi RWO gp2 54s
The expectation is to have volume overrides be applied to the PostgreSQL component, much as we do it for Quay's PostgreSQL as well. Please check, thanks!