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

fix: Can't use locally built latest images on Kubernetes clusters #2710

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

jeffmaury
Copy link
Contributor

Fixes #2661

What does this PR do?

Allow to deploy locally built images with latest tag on Kubernetes clusters

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

Fixes #2661

How to test this PR?

  1. Build a local image using latest tag
  2. Push that image to your Kubernetes cluster
  3. Deploy that image on the Kubernetes cluster
  4. Ensure the pod is running

Fixes containers#2661

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@jeffmaury jeffmaury requested review from a team and benoitf as code owners May 31, 2023 16:40
@jeffmaury jeffmaury requested review from cdrage and lstocchi and removed request for a team May 31, 2023 16:40
@@ -81,6 +81,7 @@ onMount(async () => {
container.ports?.forEach((port: any) => {
containerPortArray.push(port.hostPort);
});
container.imagePullPolicy = 'IfNotPresent';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if it needs to be all the time or just if we don't specify a tag to the image ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the default if tag is different from latest so it's good to always set it to this value.

@jeffmaury jeffmaury merged commit 8588469 into containers:main Jun 1, 2023
7 checks passed
@jeffmaury jeffmaury deleted the GH-2661 branch June 1, 2023 06:30
@podman-desktop-bot podman-desktop-bot added this to the 1.1.0 milestone Jun 1, 2023
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.

Can't use locally built latest images on Kubernetes clusters
3 participants