Coder Social home page Coder Social logo

Comments (2)

pmuellr avatar pmuellr commented on June 26, 2024

We currently get the tags we add from the env var VCAP_APPLICATION, which has the following interesting properties:

{
    "application_id": "[uuid-here]",
    "application_name": "pjm-hello-world",
    "application_version": "[uuid-here]",
    "cf_api": "https://api.run.pivotal.io",
    "instance_id": "[uuid-here]",
    "space_id": "[uuid-here]",
    "space_name": "development"
}

So ... no info on the org is directly available from VCAP_APPLICATION. Poking around other env vars, didn't see anything there either.

Curious as to why org_id and org_name aren't listed here ... should bubble this back up through the Cloud Foundry org.

The relevant org data COULD be obtained indirectly, by interacting with the cloud controller directly, or via cf, but ... that would require full login credentials to be able to get the info, which doesn't seem like a safe thing to do.

Other alternatives would be to automagically add the org name at deployment time, via deployment scripts / manifests / tooling, which would seed the NSOLID_TAGS env var with the calculated tag.

from nsolid-buildpack-cf-v2.

pmuellr avatar pmuellr commented on June 26, 2024

closing as there's not much we can do in the buildpack itself

from nsolid-buildpack-cf-v2.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.