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

ARO_IMAGE is mandatory now #925

Open
mjudeikis opened this issue Aug 10, 2020 · 3 comments
Open

ARO_IMAGE is mandatory now #925

mjudeikis opened this issue Aug 10, 2020 · 3 comments

Comments

@mjudeikis
Copy link
Contributor

As a developer, I don't want to care if ARO_IMAGE is set or not if I'm not working on that part of the code. We should have sane defaults.
Currently, after operator merged it is required for devs to set ARO_IMAGE for aro rp to work.

the suggestion was to use:


func (d *dev) AROOperatorImage() string {
	override := os.Getenv("ARO_IMAGE")
        tag := vesiong.GitCommit 
	if override != "" {
		return override
	}
        # in case we running on dirty code without override:
        if tag == "unknown"{
             tag = "master"
        }
	return fmt.Sprintf("%s.azurecr.io/aro:%s", d.acrName, tag)
}

For discussion @asalkeld @jim-minter @ehashman

@asalkeld
Copy link
Contributor

so, we have ARO_IMAGE in env.example, I think this is not a big hassle - it's just a once off change..

@asalkeld
Copy link
Contributor

one option would be to add it to env/secrets - assuming that is purely for developers and not used in CI or any other context

@mjudeikis
Copy link
Contributor Author

My question is why we cant decide it dynamically if override is not set? What is stopping factor here?

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

No branches or pull requests

2 participants