https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
python
  • i

    incalculable-sundown-82514

    02/06/2019, 7:19 PM
    that might help
  • i

    incalculable-sundown-82514

    02/06/2019, 7:19 PM
    (
    -d
    enables debug logging)
  • l

    little-river-49422

    02/06/2019, 7:20 PM
    all 180 lines? šŸ™‚
  • i

    incalculable-sundown-82514

    02/06/2019, 7:20 PM
    well, do you see an exception in there? šŸ˜„
    l
    • 2
    • 28
  • l

    little-river-49422

    02/06/2019, 8:08 PM
    hey, can you validate my approach? I've created a pulumi configuration that creates couple of resource in Azure and some deployments\service in k8s. I want to run that configuration in a pipeline for each branch developers build (so they can test their stuff). Am I correct in assumption that I need pulumi stack init for each deployment so they dont collide? also, how do I delete pulumi resources and stack afterwards (assuming build agents got no state). also, how do I auth silently to pulumi state server (I wonder if I even need that, since I dont really manage state, I just create stuff and at some point in time I need to clean it up).
  • i

    incalculable-sundown-82514

    02/06/2019, 8:10 PM
    We have some docs for that very question: https://pulumi.io/reference/cd.html
  • i

    incalculable-sundown-82514

    02/06/2019, 8:10 PM
    For your stack question: https://pulumi.io/reference/stack.html
  • i

    incalculable-sundown-82514

    02/06/2019, 8:11 PM
    the short answer: yeah, one stack is roughly equal to one deployment.
  • l

    little-river-49422

    02/06/2019, 8:11 PM
    I saw the stack article, it doesnt really clarify a lot to me
  • l

    little-river-49422

    02/06/2019, 8:11 PM
    ok, that (your short answer) helps
  • l

    little-river-49422

    02/06/2019, 8:13 PM
    PULUMI_ACCESS_TOKEN - I can just use build variable here, right?
  • i

    incalculable-sundown-82514

    02/06/2019, 8:14 PM
    yep - an environment variable in your build config.
  • l

    little-river-49422

    02/06/2019, 8:17 PM
    thanks, going to do some experimenting
  • l

    little-river-49422

    02/06/2019, 8:19 PM
    do you guys have official docker images?
  • i

    incalculable-sundown-82514

    02/06/2019, 8:19 PM
    we do, yeah: https://hub.docker.com/r/pulumi/pulumi
  • l

    little-river-49422

    02/06/2019, 8:21 PM
    does that contain all node\python sdk?
  • i

    incalculable-sundown-82514

    02/06/2019, 8:21 PM
    no, it is the CLI only. Your language’s package manager is responsible for installing the language SDKs.
  • l

    little-river-49422

    02/06/2019, 8:22 PM
    mhm, but does it contain python?
  • w

    white-balloon-205

    02/06/2019, 8:23 PM
    Yes - it does include Python. See https://github.com/pulumi/pulumi/blob/6f386567f6a8494853bee8fccdb455b3be1a993b/dist/docker/Dockerfile#L28.
    šŸ˜›artypus: 1
  • l

    little-river-49422

    02/06/2019, 8:24 PM
    ok, just that page doesnt link to dockerfile
  • w

    white-balloon-205

    02/06/2019, 8:25 PM
    Opened https://github.com/pulumi/pulumi/issues/2432.
    šŸ˜›artypus: 1
  • l

    little-river-49422

    02/06/2019, 8:28 PM
    ok, just so you know I'm not wasting your time. I'm certainly using this with at least one client, going to blog about this and probably throw some examples in the example repo. and i'll prolly talk on at least one meetup about this šŸ˜‰
    šŸ™Œ 1
    ā¤ļø 1
  • l

    little-river-49422

    02/06/2019, 8:29 PM
    i really like the python stuff, i think that's a move in the right direction. only thing that's really lacking right now is debug experience, which is more or less non existent šŸ˜ž
  • w

    white-balloon-205

    02/06/2019, 8:43 PM
    FWIW - debugging support is tracked in https://github.com/pulumi/pulumi/issues/1372. Definitely want to add this!
  • l

    little-river-49422

    02/06/2019, 8:46 PM
    yeah, Sean mentioned that
  • l

    little-river-49422

    02/07/2019, 5:12 PM
    hey folks, another stupid question, how can I validate my k8s "manifests"? the thing is, they are using a slightly different notation sometimes. questionmark. yaml has selector. matchLabels, but pulumi has selector.match_labels
  • l

    little-river-49422

    02/07/2019, 5:12 PM
    https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py no validation here, not sure where do I look šŸ™‚
    c
    • 2
    • 3
  • l

    little-river-49422

    02/07/2019, 7:33 PM
    another question: i pass the default namespace to the k8s provider, but all the resources are being created in the default ns, is this expected?
    c
    m
    i
    • 4
    • 6
  • l

    little-river-49422

    02/07/2019, 9:20 PM
    mhm, any chance there is a bug? I dont see anything wrong with this definition:
    RoleBinding(
        "orleans-rbac-rb",
        metadata={
            "name": "orleans-rbac",
            "namespace": "default"
        },
        role_ref={
            "apiGroup": "<http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>",
            "kind": "ClusterRole",
            "name": "orleans-rbac"
        },
        subjects=[
            {
                "kind": "ServiceAccount",
                "name": "orleans-rbac",
                "namespace": "default"
            }
        ]
    )
    this binds to a clusterrole, but thats intentional. it should be the reason to fail anyway. no way pulumi can know I have or not have that role, nor should it care
  • l

    little-river-49422

    02/07/2019, 9:20 PM
    same thing works in yaml
Powered by Linen
Title
l

little-river-49422

02/07/2019, 9:20 PM
same thing works in yaml
View count: 1