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

Allow control of managed-by label through use of environment variable #1471

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Feb 12, 2021

Related: #1357

This allows the label to be controlled in a simple way for now

▶ PULUMI_KUBERNETES_MANAGED_BY_LABEL=mycompany pulumi up
Previewing update (dev)
     Type                             Name                      Plan
 +   pulumi:pulumi:Stack              testing-new-workflow-dev  create
 +   └─ kubernetes:core/v1:Namespace  nginx                     create
Resources:
    + 2 to create
Do you want to perform this update? details
+ pulumi:pulumi:Stack: (create)
    [urn=urn:pulumi:dev::testing-new-workflow::pulumi:pulumi:Stack::testing-new-workflow-dev]
    + kubernetes:core/v1:Namespace: (create)
        [urn=urn:pulumi:dev::testing-new-workflow::kubernetes:core/v1:Namespace::nginx]
        [provider=urn:pulumi:dev::testing-new-workflow::pulumi:providers:kubernetes::default_2_8_0::04da6b54-80e4-46f7-96ec-b56ff0331ba9]
        apiVersion: "v1"
        kind      : "Namespace"
        metadata  : {
            labels: {
                app.kubernetes.io/managed-by: "mycompany"
            }
            name  : "testing"
        }

Proposed changes

Related issues (optional)

Related: #1357

This allows the label to be controlled in a simple way for now

```
▶ PULUMI_KUBERNETES_MANAGED_BY_LABEL=mycompany pulumi up
Previewing update (dev)
     Type                             Name                      Plan
 +   pulumi:pulumi:Stack              testing-new-workflow-dev  create
 +   └─ kubernetes:core/v1:Namespace  nginx                     create
Resources:
    + 2 to create
Do you want to perform this update? details
+ pulumi:pulumi:Stack: (create)
    [urn=urn:pulumi:dev::testing-new-workflow::pulumi:pulumi:Stack::testing-new-workflow-dev]
    + kubernetes:core/v1:Namespace: (create)
        [urn=urn:pulumi:dev::testing-new-workflow::kubernetes:core/v1:Namespace::nginx]
        [provider=urn:pulumi:dev::testing-new-workflow::pulumi:providers:kubernetes::default_2_8_0::04da6b54-80e4-46f7-96ec-b56ff0331ba9]
        apiVersion: "v1"
        kind      : "Namespace"
        metadata  : {
            labels: {
                app.kubernetes.io/managed-by: "mycompany"
            }
            name  : "testing"
        }
```
@stack72 stack72 self-assigned this Feb 12, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants