Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Change image pull policy for OneAgentAPM with useImmutableImage #358

Merged
merged 20 commits into from
Jan 13, 2021

Conversation

DTMad
Copy link
Member

@DTMad DTMad commented Jan 8, 2021

No description provided.

@DTMad DTMad requested a review from lrgar January 8, 2021 14:27
Comment on lines 173 to 177
imagePullPolicy := corev1.PullIfNotPresent
if oa.Status.UseImmutableImage {
useImmutableImage = "true"
imagePullPolicy = corev1.PullAlways
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Always set it to PullAlways, there is no reason not to. If you don't use the immutable image, then we use the Operator image, and we want to use the same one used by the Operator Pod.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@DTMad DTMad requested a review from lrgar January 12, 2021 14:03
@DTMad DTMad merged commit 73fb5ff into master Jan 13, 2021
@DTMad DTMad deleted the fix/ChangeImagePullPolicyWebhook branch January 13, 2021 07:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants