Open fedinskiy opened 1 year ago
Is this still an issue?
@geoand yes, I can reproduce it even for 3.14.3.
I created separate branch in reproducer for it, will update the description in a minute
UPD: updated the description
Thanks for the update!
cc @iocanel
Describe the bug
I have an application with
quarkus-openshift
extension, which I use to generate kubernetes and openshift manifests for OCP. Usually this manifests contain two annotations in Service->metadata:app.quarkus.io/build-timestamp
andapp.quarkus.io/commit-id
. But when I switch to some particular commit (so-called "detached HEAD" state), theapp.quarkus.io/commit-id
is not generated anymore.Expected behavior
Commit id should be detected and added to the manifest if it exists, kubernetest.yml should look like that:
Actual behavior
How to Reproduce?
git@github.com:fedinskiy/reproducer.git -b manifest-generator
Check status:
nothing to commit, working tree clean
commit 2fd9ef7e137d074740cb2df3e0936b6a930a3d60 (HEAD, origin/manifest-generator, manifest-generator) Author: Fedor Dudinsky fdudinsk@redhat.com Date: Fri Sep 20 09:34:18 2024 +0200
$ git status HEAD detached at 2fd9ef7 nothing to commit, working tree clean