Skip to content

property jkube.enricher.jkube-controller.pullPolicy is not taken into account if a deployment resource fragment is defined #1619

@sunix

Description

@sunix

Describe the bug

Trying to use jkube.enricher.jkube-controller.pullPolicy to set the image pull policy to Always. It works. However, once I added a deployment resource fragment, even not related, it stopped working.

Eclipse JKube version

1.8.0

Component

Kubernetes Maven Plugin

Apache Maven version

No response

Gradle version

No response

Steps to reproduce

  1. Create a spring boot app from
  2. Add the kubernetes maven plugin
  3. Add in the pom.xml properties <jkube.enricher.jkube-controller.pullPolicy>Always</jkube.enricher.jkube-controller.pullPolicy>
  4. mvn k8s:resource, the generated configuration with a pullpolicy to Always for the container image.
  5. Add the file src/main/jkube/deployment.yml
spec:
  replicas: 2
  1. mvn k8s:resource, the generated configuration with a pullpolicy to IfNotPresent for the container image.

Expected behavior

it should keep the pull policy to Always

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

other (please specify in additional context)

Environment

Linux

Eclipse JKube Logs

No response

Sample Reproducer Project

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdemoableIssues which can be demoed during the Sprint review meeting

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions