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

Add container-suffix operator flag to allow users to specify a container suffix to be applied across all Elastic stack container images #6086

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Oct 12, 2022

Fixes #6064

--container-suffix allows users to set a default suffix for container images that will be applied whenever the operator defaults to setting the image used. That is the case whenever the user does not explicitly specify the image attribute on a Elastic Stack resource manifest.

It is illegal to combine both --ubi-only and --container-suffix because --ubi-only already implies a container suffix of -ubi

@botelastic botelastic bot added the triage label Oct 12, 2022
@pebrc pebrc added >enhancement Enhancement of existing functionality v2.6.0 labels Oct 12, 2022
@botelastic botelastic bot removed the triage label Oct 12, 2022
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

If we want this flag to be available with Helm I think we should also update the ConfigMap template.

cmd.Flags().String(
operator.ContainerSuffixFlag,
"",
fmt.Sprintf("Suffix to be appended to container images by default. Cannot be combined with %s", operator.UBIOnlyFlag),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe do the same for the UBI flag?

	cmd.Flags().Bool(
		operator.UBIOnlyFlag,
		false,
		fmt.Sprintf("Use only UBI container images to deploy Elastic Stack applications. UBI images are only available from 7.10.0 onward. Cannot be combined with %s", operator.ContainerSuffixFlag),
	)

And do a similar change in the doc?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other flags not available in Helm. I created an issue to follow this:

@pebrc pebrc requested a review from barkbay October 13, 2022 11:10
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pebrc pebrc merged commit 52ffa99 into elastic:main Oct 13, 2022
@naemono naemono changed the title Add container-suffix operator flag Add container-suffix operator flag to allow user to specify a container suffix to be applied across all Elastic stack container images Nov 30, 2022
@thbkrkr thbkrkr changed the title Add container-suffix operator flag to allow user to specify a container suffix to be applied across all Elastic stack container images Add container-suffix operator flag to allow users to specify a container suffix to be applied across all Elastic stack container images Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v2.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding a --container-suffix startup parameter to the operator
3 participants