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

    03/21/2019, 8:50 PM
    ouch.
  • i

    incalculable-sundown-82514

    03/21/2019, 8:50 PM
    can you open a GitHub issue for that?
  • b

    brief-school-94535

    03/21/2019, 8:50 PM
    Sure
  • i

    incalculable-sundown-82514

    03/21/2019, 8:50 PM
    thanks!
  • i

    incalculable-sundown-82514

    03/21/2019, 8:50 PM
    in the meantime, you can use a namespace other than
    dev
    for your config and it should work OK.
  • b

    brief-school-94535

    03/21/2019, 8:50 PM
    ok
  • b

    brief-school-94535

    03/21/2019, 8:50 PM
    I’ll give that a try
  • b

    brief-school-94535

    03/21/2019, 10:29 PM
    @incalculable-sundown-82514 still not working even after I recreated teh stack with diff names
  • b

    brief-school-94535

    03/21/2019, 10:30 PM
    any clues as to what’s going on
  • i

    incalculable-sundown-82514

    03/21/2019, 10:43 PM
    I’m not sure - somehow your config is getting created on the command line without a namespace. can you create a github issue for this?
  • b

    brief-school-94535

    03/21/2019, 10:44 PM
    I will thank you
  • b

    brief-school-94535

    03/21/2019, 10:51 PM
    @incalculable-sundown-82514 what project on GH should I submit this issues to?
  • i

    incalculable-sundown-82514

    03/21/2019, 10:51 PM
    github.com/pulumi/pulumi
  • b

    brief-school-94535

    03/21/2019, 11:10 PM
    fyi issue submitted https://github.com/pulumi/pulumi/issues/2578
  • m

    microscopic-pilot-97530

    03/21/2019, 11:11 PM
    From a quick look at the issue, it looks like you’re running
    python test.py
    , but instead try running
    pulumi up
  • m

    microscopic-pilot-97530

    03/21/2019, 11:47 PM
    @brief-school-94535, I added a comment to the issue that might help https://github.com/pulumi/pulumi/issues/2578#issuecomment-475444875
  • b

    brief-school-94535

    03/22/2019, 1:13 PM
    @microscopic-pilot-97530 thanks for the quick response. I was trying to test my script by using the python runtime to test a few things without attempting to actually deploy but it seems that I have to test my sripts using the pulumi runtime. I’ll use the pulumi runtime to test my script.
  • b

    brief-school-94535

    03/22/2019, 1:58 PM
    @incalculable-sundown-82514 @microscopic-pilot-97530 this all makes sense now. I would suggest that this be made a bit more clear in the runtime errors which is what is being discussed already in the issue tix I submitted. Thank you for all the help I think this issue is resolved for me now 🙂
    😃 1
    👍 1
  • b

    brief-school-94535

    03/22/2019, 3:15 PM
    @microscopic-pilot-97530 I can retrieve the
    conf = pulumi.Config(‘gke’)
    stack_name = conf.require(‘name’)
    No problem but
    gcp_project = conf.require(‘gcp:project’)
    gcp_zone = conf.require(‘gcp:zone’)
    Error with
    pulumi:pulumi:Stack (gke-k8s):
        error: Missing required configuration variable ‘gke:gcp:project’
            please set a value using the command pulumi config set gke:gcp:project <value>
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    The config values are set in my Pulumi.k8s.yaml file. any advise?
    m
    • 2
    • 7
  • a

    alert-monitor-28534

    03/22/2019, 4:22 PM
    I take it there's no easy way to deploy Helm charts to Kubernetes with Python? For Node.js there's this: https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/nodejs/helm.ts
    g
    • 2
    • 2
  • b

    brief-school-94535

    03/22/2019, 4:36 PM
    Getting this error from python
    pulumi_kubernetes
    module seems like it’s not seeing the core module. Pylint isn’t balking at it so not sure what’s going on. Any ideas?
    -.sh
    g
    i
    • 3
    • 17
  • b

    brief-school-94535

    03/22/2019, 7:04 PM
    @incalculable-sundown-82514 I’ve looked at the doc for the Namespace & I’m converting the cmds from the Typescript GKE example but obviously I’m not feeding these params correctly
    __main___py_code.py
    i
    • 2
    • 1
  • p

    proud-artist-4864

    03/25/2019, 7:05 AM
    @incalculable-sundown-82514 is there some way to derive from one of the pulumi classes so that I can have a new resource that has its inputs resolved and called as part of the dependency process so that I can access the outputs of other resources? The only way I can see currently is to define a custom resource that has its own provider and pass in the cloud provider (eg AWS) as an option for its children to use. Does that mean I have to write something like pulumi_random as a provider so that the engine will call the appropriate invocations at runtime?
    i
    • 2
    • 5
  • b

    billowy-garage-68819

    03/26/2019, 3:05 PM
    is there not an equivalent to the ts helm implementation on pulumi_kubernetes in the python sdk?
    g
    • 2
    • 1
  • b

    billowy-garage-68819

    03/27/2019, 3:03 PM
    just ran into an interesting issue with pulumi_kubernetes
  • b

    billowy-garage-68819

    03/27/2019, 3:03 PM
    canary = k8s.apps.v1.Deployment("canary", AttributeError: module 'pulumi_kubernetes' has no attribute 'apps'
  • b

    billowy-garage-68819

    03/27/2019, 3:04 PM
    import pulumi_kubernetes as k8s
  • b

    billowy-garage-68819

    03/27/2019, 3:04 PM
    the interesting bit is I see the apps submodule in venv
    g
    i
    • 3
    • 4
  • l

    little-river-49422

    04/02/2019, 7:58 AM
    hey folks, found something that looks weird. when using reference to configmap thats being created by pulumi when creating job it fails with:
    Plan apply failed: Job.batch "dbseed" is invalid: spec.template.spec.containers[0].envFrom[0].configMapRef.name: Invalid value: "develop/baseconfigmap-wwykveez": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. '<http://example.com|example.com>', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
    which doesnt make a lot of sense. develop - is the namespace, everything after
    /
    is real configmap name. this works for deployments, but not for jobs? I can work around with this bad boy:
    config_map.metadata.apply(
        lambda metadata: metadata['name'].split('/')[-1]
    )
    but this doesnt look right
    i
    g
    • 3
    • 14
  • l

    little-river-49422

    04/02/2019, 12:21 PM
    mhm, another question. I cannot use output.apply outside of pulumi resources?
Powered by Linen
Title
l

little-river-49422

04/02/2019, 12:21 PM
mhm, another question. I cannot use output.apply outside of pulumi resources?
View count: 1