Skip to content

oc:build does not update labels and annotations in Openshift Build resource #2500

@MimerPlusPlus

Description

@MimerPlusPlus

Describe the bug

(As discussed with @rohanKanojia on Gitter)
jKube does not update pom version and git information in labels (.metadata.labels.version) and annotations (jkube.io/git-branch and kube.io/git-commit) with current information from the Maven build. Instead the information is just copied from the BuildConfig.

Tested on OpenShift 4.12 with Maven 3.9.4 and jKube 1.3.0 (from Red Hat Fuse)

Eclipse JKube version

1.3.0

Component

Kubernetes Maven Plugin

Apache Maven version

other (please specify in additional context)

Gradle version

None

Steps to reproduce

  1. Build and apply a project to OpenShift (creating a BuildConfig and a Build)
  2. Update to new GitBranch and commit a new POM version.
  3. Do a mvn oc:build
  4. Verify that latest OpenShift Build has updated to POM version and Git commit/branch in labels and annotations.

Expected behavior

Latest OpenShift Build should be updated with latest POM version and Git information (branch and commit key)

Runtime

OpenShift

Kubernetes API Server version

other (please specify in additional context)

Environment

macOS

Eclipse JKube Logs

No response

Sample Reproducer Project

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions