question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

doc for the deployment exporter should explain how to label all "special" builds e.g. binary for example.

See original GitHub issue

Recreate: oc create namespace binary-build oc new-build python --name=python-binary-build4 --binary=true -n binary-build oc label bc python-binary-build4 app.kubernetes.io/name=python-binary-build4 -n binary-build oc start-build bc/python-binary-build4 --from-file=./app.py --follow -n binary-build oc get builds -n binary-build oc -n binary-build annotate build python-binary-build4-1 --overwrite
io.openshift.build.commit.id=7810f2a85d5c89cb4b17e9a3208a311af65338d8
io.openshift.build.source-location=http://github.com/konveyor/pelorus oc -n binary-build new-app python-binary-build4

  • The build has labels:
app.kubernetes.io/name=python-binary-build4
build=python-binary-build4
buildconfig=python-binary-build4
openshift.io/build-config.name=python-binary-build4
openshift.io/build.start-policy=Serial

This is likely due to: https://github.com/konveyor/pelorus/blob/master/exporters/deploytime/app.py#L218

[whayutin@thinkdoe BUILD]$ oc get all
NAME                                        READY   STATUS      RESTARTS   AGE
pod/python-binary-build4-1-build            0/1     Completed   0          4m15s
pod/python-binary-build4-5747676745-68drq   1/1     Running     0          2m51s

NAME                           TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
service/python-binary-build4   ClusterIP   172.30.197.209   <none>        8080/TCP   2m52s

NAME                                   READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/python-binary-build4   1/1     1            1           2m52s

NAME                                              DESIRED   CURRENT   READY   AGE
replicaset.apps/python-binary-build4-5747676745   1         1         1       2m51s
replicaset.apps/python-binary-build4-5f575c5f87   0         0         0       2m52s

NAME                                                  TYPE     FROM     LATEST
buildconfig.build.openshift.io/python-binary-build4   Source   Binary   1

NAME                                              TYPE     FROM     STATUS     STARTED         DURATION
build.build.openshift.io/python-binary-build4-1   Source   Binary   Complete   4 minutes ago   54s

NAME                                                  IMAGE REPOSITORY                                                                     TAGS     UPDATED
imagestream.image.openshift.io/python-binary-build4   image-registry.openshift-image-registry.svc:5000/binary-build/python-binary-build4   latest   3 minutes ago
[whayutin@thinkdoe BUILD]$ 

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
weshayutincommented, Jul 28, 2022

There is some doc on this now, let’s re-review to be certain.

0reactions
KevinMGrangercommented, Jun 27, 2022

Should we change the issue name to reflect that it’s a labelling issue? Or create a new issue instead? I keep getting confused when I see notifications for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing exporters - Prometheus.io
Ensuring the exporter works out of the box without configuration, and providing a selection of example configurations for transformation if required, is advised ......
Read more >
Templates | OpenShift Container Platform 3.11
A template describes a set of objects that can be parameterized and processed to produce a list of objects for creation by OpenShift...
Read more >
Create and Configure Jobs and Pipelines Using YAML
Click the job's name to open it in the Builds page. You can create the job configuration file online using the code editor...
Read more >
Deploying container images to Cloud Run - Google Cloud
This page describes how to deploy new services and new revisions to Cloud Run. Permissions required to deploy. You must have ONE of...
Read more >
My Openshift Cheatsheet - GitHub Gist
The oc export command can create a resource definition file by using the --as-template option. Without the --as-template option, the oc export command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found