Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/quay/v1/quayregistry_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func NeedsBundleSecret(quay *QuayRegistry) bool {
// being Managed AND containing a custom user config provided through the config bundle
// secret.
func ComponentSupportsConfigWhenManaged(cmp Component) bool {
return cmp.Kind == ComponentRoute || cmp.Kind == ComponentMirror || cmp.Kind == ComponentRedis
return cmp.Kind == ComponentRoute || cmp.Kind == ComponentMirror || cmp.Kind == ComponentRedis || cmp.Kind == ComponentCache
}

func EnsureComponents(components []Component) []Component {
Expand Down
3 changes: 2 additions & 1 deletion controllers/quay/quayregistry_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,9 @@ func Test_hasNecessaryConfig(t *testing.T) {
quay: quayWithUnmanagedComponents(v1.ComponentCache),
},
{
// managed cache supports user config: operator overwrites infra fields anyway
name: "managed cache and redis but with provided config",
experr: true,
experr: false,
cfg: map[string][]byte{
"config.yaml": []byte("DATA_MODEL_CACHE_CONFIG:\n engine: redis\n redis_config:\n host: somehost\n port: 12345\n repository_blob_cache_ttl: 120s\n catalog_page_cache_ttl: 120s\n active_repo_tags_cache_ttl: 120s\n value_size_limit: 5MiB\n")},
quay: quayWithUnmanagedComponents(),
Expand Down
Loading