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
general
  • c

    creamy-potato-29402

    08/27/2018, 10:41 PM
    hmm I’m not sure I understand?
  • c

    creamy-potato-29402

    08/27/2018, 10:41 PM
    new k8s.core.v1.Namespace(...)
    doesn’t work?
  • i

    important-jackal-88836

    08/27/2018, 10:43 PM
    yes for a new one, but I'm trying to get existing if it's already there like
    default
  • c

    creamy-potato-29402

    08/27/2018, 10:43 PM
    Ah.
  • c

    creamy-potato-29402

    08/27/2018, 10:43 PM
    You can’t just fill in the
    namespace
    with the actual name?
  • i

    important-jackal-88836

    08/27/2018, 10:50 PM
    uh right that would be the correct way to do things
  • c

    creamy-potato-29402

    08/27/2018, 11:07 PM
    @important-jackal-88836 er, sorry, did that answer your question?
  • i

    important-jackal-88836

    08/27/2018, 11:08 PM
    yeah, I just had lots of explicit dependsOn from earlier debugging that I was trying to work with
  • i

    important-jackal-88836

    08/27/2018, 11:08 PM
    im going to try things with implicit dependencies again instead
  • c

    creamy-potato-29402

    08/27/2018, 11:09 PM
    I see, I thought you were asking how you can depend on a namespace that was created outside the Pulumi program….
  • i

    important-jackal-88836

    08/27/2018, 11:10 PM
    yeah, but I don't really need to do that if I use the implicit input outputs
  • i

    important-jackal-88836

    08/27/2018, 11:10 PM
    but I guess I would like to know out of curiosity
  • c

    creamy-potato-29402

    08/27/2018, 11:12 PM
    lol sorry, if I understand your question, I believe you’re asking if you have to manually use a
    string
    representing a namespace that already exists.
  • c

    creamy-potato-29402

    08/27/2018, 11:12 PM
    Hmm, @bitter-oil-46081, @incalculable-sundown-82514 do either of you know if
    .read
    works with kube resources? I haven’t tried myself.
  • i

    incalculable-sundown-82514

    08/27/2018, 11:13 PM
    Most likely no, would be my guess
  • b

    big-piano-35669

    08/27/2018, 11:13 PM
    I would have expected
    const ns = k8s.core.v1.Namespace.get("default");
    to do the trick.
  • i

    incalculable-sundown-82514

    08/27/2018, 11:13 PM
    .get
    is an artifact of tfgen
  • i

    incalculable-sundown-82514

    08/27/2018, 11:13 PM
    right?
  • c

    creamy-potato-29402

    08/27/2018, 11:13 PM
    right but @important-jackal-88836 is saying they want to adopt a namespace that already exists!
  • c

    creamy-potato-29402

    08/27/2018, 11:13 PM
    if I understand correctly.
  • c

    creamy-potato-29402

    08/27/2018, 11:14 PM
    e.g., sometimes normal users aren’t allowed to create namespaces
  • i

    important-jackal-88836

    08/27/2018, 11:19 PM
    yeah basically
  • i

    important-jackal-88836

    08/27/2018, 11:19 PM
    i was going to make a new one if a new name was provided or use the existing 'default' namespace and export the resource as the target namespace
  • b

    big-piano-35669

    08/27/2018, 11:55 PM
    @important-jackal-88836 finally got that GKE example working, see the PR in our examples repo: https://github.com/pulumi/examples/pull/124 It actually does do the cluster provisioning in addition to deploying an actual K8s Deployment object into that cluster afterwards, all in one program. Feedback welcome! (The GKE auth stuff is a little messy.)
    👍 1
    🎉 1
    i
    • 2
    • 3
  • c

    creamy-potato-29402

    08/27/2018, 11:58 PM
    We can iterate on the GKE auth stuff to make it “more solid”, but this is a great first step
  • c

    creamy-potato-29402

    08/27/2018, 11:58 PM
    where “more solid” == “maybe no changes, who knows, it’s a deep stack”
  • c

    creamy-potato-29402

    08/28/2018, 1:18 AM
    @important-jackal-88836 If you want backup, I might be able to swing flying to the bay area (I assume you are in the bay area?), and hanging around/answering questions! Would also be cool to meet in person. 🙂
  • i

    important-jackal-88836

    08/28/2018, 1:23 AM
    @creamy-potato-29402 I'm actually in Portland, OR, I work remote for bay area company
  • c

    creamy-potato-29402

    08/28/2018, 1:23 AM
    ah!
  • i

    important-jackal-88836

    08/28/2018, 1:23 AM
    yeah would be cool to meet up
Powered by Linen
Title
i

important-jackal-88836

08/28/2018, 1:23 AM
yeah would be cool to meet up
View count: 1