Skip to content

Commit 20aca36

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[installer]: add customization to docker registry
1 parent 1b10bd2 commit 20aca36

File tree

1 file changed

+6
-0
lines changed
  • install/installer/pkg/components/docker-registry

1 file changed

+6
-0
lines changed

install/installer/pkg/components/docker-registry/helm.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ var Helm = common.CompositeHelmFunc(
4141
}
4242
}
4343

44+
// Append the custom parameters
45+
registryValues = helm.CustomizeAnnotation(registryValues, "docker-registry.podAnnotations", cfg, Component, common.TypeMetaDeployment)
46+
registryValues = helm.CustomizeLabel(registryValues, "docker-registry.podLabels", cfg, Component, common.TypeMetaDeployment)
47+
registryValues = helm.CustomizeAnnotation(registryValues, "docker-registry.service.annotations", cfg, Component, common.TypeMetaService)
48+
registryValues = helm.CustomizeEnvvar(registryValues, "docker-registry.extraEnvVars", cfg, Component)
49+
4450
inCluster := pointer.BoolDeref(cfg.Config.ContainerRegistry.InCluster, false)
4551
s3Storage := cfg.Config.ContainerRegistry.S3Storage
4652
enablePersistence := "true"

0 commit comments

Comments
 (0)