Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the current namespace to use inside a template #13934

Closed
alikhajeh1 opened this issue Apr 28, 2017 · 1 comment
Closed

Getting the current namespace to use inside a template #13934

alikhajeh1 opened this issue Apr 28, 2017 · 1 comment

Comments

@alikhajeh1
Copy link

Has anyone found a way to get the current namespace to use inside a template so we don't have to ask the user to provide it?

This is useful when creating the required resources to create a new app, and for example, the deploymentconfig needs the current namespace, where the imagestream is:

    triggers:
    - type: ImageChange
      imageChangeParams:
        automatic: true
        containerNames:
        - ${SERVICE_NAME}
        from:
          kind: ImageStreamTag
          name: ${SERVICE_NAME}:latest
          namespace: ${CURRENT_NAMESPACE}    <<<<<< User needs to define this
Version
oc v1.4.0-rc1+b4e0954
kubernetes v1.4.0+776c994
features: Basic-Auth

Server https://dashboard.abarcloud.com:443
openshift v1.4.1
kubernetes v1.4.0+776c994
Current Result

A variable has to be defined for the user to fill in while using the template.

Expected Result

It would be nice if there was a $CURRENT_NAMESPACE variable that could be pre-populated by the system so we wouldn't have to ask users to enter the current namespace.

@pweil-
Copy link
Contributor

pweil- commented Apr 28, 2017

Duplicate: #8971. You can track progress via this card: https://trello.com/c/zcRQFri0/916-2-namespace-template-parameter-templates Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants