Skip to content

Commit

Permalink
manifests: export operator image env var to container
Browse files Browse the repository at this point in the history
also use the env var to launch the azure path fix job
  • Loading branch information
flavianmissi committed Feb 13, 2024
1 parent 0542d18 commit ca5a086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifests/07-operator.yaml
Expand Up @@ -68,6 +68,8 @@ spec:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "cluster-image-registry-operator"
- name: OPERATOR_IMAGE
value: docker.io/openshift/origin-cluster-image-registry-operator:latest
- name: IMAGE
value: docker.io/openshift/origin-docker-registry:latest
- name: IMAGE_PRUNER
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/azurepathfixjob.go
Expand Up @@ -168,7 +168,7 @@ func (gapfj *generatorAzurePathFixJob) expected() (runtime.Object, error) {
PriorityClassName: "system-cluster-critical",
Containers: []kcorev1.Container{
{
Image: os.Getenv("IMAGE"),
Image: os.Getenv("OPERATOR_IMAGE"),
Resources: kcorev1.ResourceRequirements{
Requests: kcorev1.ResourceList{
kcorev1.ResourceCPU: resource.MustParse("100m"),
Expand Down

0 comments on commit ca5a086

Please sign in to comment.