Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make image configurable #93

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

jhernand
Copy link
Collaborator

Currently the container image used by the servers is hardcoded in the Go source code. This complicates development because when the operator is deployed it isn't possible to use a custom image. To simplify that this patch adds a new --image command line flag to the start controller-manager command. The default will be
quay.io/openshift-kni/oran-o2ims:latest, but it will be possible to change it in the the development environment, in two different ways:

  1. Changing the IMG make variable, for example:
$ make IMG=quay.io/myuser/myimage:123 build deploy
  1. Using the spec.image field of the custom resource.

The patch also changes The kustomization files used to generate tha operator manifests so that the selected image is automatically passed to the --image command line flag.

Currently the container image used by the servers is hardcoded in the Go
source code. This complicates development because when the operator is
deployed it isn't possible to use a custom image. To simplify that this
patch adds a new `--image` command line flag to the `start
controller-manager` command. The default will be
`quay.io/openshift-kni/oran-o2ims:latest`, but it will be possible to
change it in the the development environment, in two different ways:

1. Changing the `IMG` make variable, for example:

  ```
  $ make IMG=quay.io/myuser/myimage:123 build deploy
  ```

2. Using the `spec.image` field of the custom resource.

The patch also changes The kustomization files used to generate tha
operator manifests so that the selected image is automatically passed to
the `--image` command line flag.

Signed-off-by: Juan Hernandez <[email protected]>
@openshift-ci openshift-ci bot requested review from danielerez and irinamihai April 18, 2024 19:43
Copy link

openshift-ci bot commented Apr 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from jhernand. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jhernand jhernand merged commit e39f1ea into openshift-kni:main Apr 19, 2024
7 of 8 checks passed
@jhernand jhernand deleted the make_image_configurable branch April 19, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant