doc for the deployment exporter should explain how to label all "special" builds e.g. binary for example.
See original GitHub issueRecreate:
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:
- Created a year ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is some doc on this now, let’s re-review to be certain.
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.