https://pulumi.com logo
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, 5:34 PM
    ok
  • c

    creamy-potato-29402

    08/27/2018, 5:34 PM
    I’ve filed a bug
  • g

    gray-city-50684

    08/27/2018, 5:36 PM
    thx - any idea for an ETA?
  • c

    creamy-potato-29402

    08/27/2018, 5:37 PM
    Hmmm, it might have to be next week, I think we will have to add a
    Crd
    class, and it’s not clear to me yet what the implications of this are.
  • c

    creamy-potato-29402

    08/27/2018, 5:38 PM
    But, it is important to add.
  • g

    gray-city-50684

    08/27/2018, 5:38 PM
    And another question: I have two Output<string> values, and I would like to combine them to create a new Output<string>. How could I do this?
  • g

    gray-city-50684

    08/27/2018, 5:39 PM
    Use case is like this:
  • a

    abundant-application-244

    08/27/2018, 5:40 PM
    Screen Shot 2018-08-27 at 10.38.42 AM.png
    g
    • 2
    • 1
  • g

    gray-city-50684

    08/27/2018, 5:40 PM
    and I would like to output:
  • g

    gray-city-50684

    08/27/2018, 5:41 PM
    az aks get-credentials --resource-group ${resourceGroupName} --name ${clustername}
  • c

    creamy-potato-29402

    08/27/2018, 5:42 PM
    SOmething like:
    pulumi
        .all([k8sCluster.name, k8sResourceGroup.name])
        .apply([cluster, group] => `az aks get-credentials --resource-group ${resourceGroupName} --name ${clustername}`)
  • g

    gray-city-50684

    08/27/2018, 5:43 PM
    cool, thx
  • c

    creamy-potato-29402

    08/27/2018, 5:46 PM
    np let me know of any other problems
  • u

    user

    08/27/2018, 7:57 PM
    Ally Olsen added a commit Merged "toms picture" toms pic View this commit Beta site and Socialmed > Master
    f
    • 1
    • 1
  • f

    flaky-receptionist-88878

    08/27/2018, 8:06 PM
    Or is that approach with Pulumi against the grain?
  • i

    important-jackal-88836

    08/27/2018, 9:04 PM
    @flaky-receptionist-88878 one of the main reasons for something like Pulumi is the resource dependency graph which can't be represented in the yaml
  • i

    important-jackal-88836

    08/27/2018, 9:05 PM
    if you don't want to convert everything to code to take advantage of that, then personally I would just apply the yaml the old-fashioned way
  • m

    microscopic-florist-22719

    08/27/2018, 9:06 PM
    Incidentally, we do have support for using raw YAML: https://github.com/pulumi/pulumi-kubernetes/blob/master/pack/nodejs/provider.ts#L742-L763
    👍 2
  • m

    microscopic-florist-22719

    08/27/2018, 9:07 PM
    kubernetes.yaml.ConfigGroup
    is your friend here.
  • m

    microscopic-florist-22719

    08/27/2018, 9:08 PM
    @flaky-receptionist-88878 you can use the options to indicate a set of YAML files that the Pulumi Kubernetes library will parse and convert into equivalent Pulumi resources. There's a direct mapping for each YAML construct, so the resulting resources faithfully represent the objects in the YAML. @creamy-potato-29402 can correct me on any subtleties 🙂
  • c

    creamy-potato-29402

    08/27/2018, 9:22 PM
    @flaky-receptionist-88878 yes, @microscopic-florist-22719 is correct. There’s an example here: https://github.com/pulumi/pulumi-kubernetes/blob/master/examples/yaml-guestbook/index.ts
    👍 1
  • c

    creamy-potato-29402

    08/27/2018, 9:22 PM
    import * as k8s from "@pulumi/kubernetes";
    
    // Create resources from standard Kubernetes guestbook YAML example.
    const guestbook = new k8s.yaml.ConfigGroup("guestbook", { files: "yaml/*.yaml" });
    
    // Export the (cluster-private) IP address of the Guestbook frontend.
    const frontend = guestbook.getResource("v1/Service", "frontend");
    export const frontendIp = frontend.spec.apply(spec => spec.clusterIP);
  • c

    creamy-potato-29402

    08/27/2018, 9:22 PM
    also cc @important-jackal-88836 🙂
  • i

    important-jackal-88836

    08/27/2018, 9:24 PM
    I take that back... there are still lots of other reasons to use Pulumi like centralized management and outputs.
    👍 1
  • c

    creamy-potato-29402

    08/27/2018, 9:25 PM
    lol, this was always intended to make the upgrade path smooth. My favorite reason is that the pulumi CLI just makes it easy to know whether your deployment succeeded.
  • c

    creamy-potato-29402

    08/27/2018, 9:26 PM
    cf., my blog bits about this from Friday: https://blog.pulumi.com/simple-reproducible-kubernetes-deployments
    👍 1
  • i

    important-jackal-88836

    08/27/2018, 9:27 PM
    and outputs of yaml could be integrated into a dependency graph after all
  • e

    echoing-jelly-67975

    08/27/2018, 9:27 PM
    Is there any documentation on self-hosting instead of relying on pulumi.com?
    m
    b
    • 3
    • 6
  • i

    important-jackal-88836

    08/27/2018, 10:21 PM
    how might one make a kubernetes namespace if it doesn't exist or otherwise export existing?
  • i

    important-jackal-88836

    08/27/2018, 10:41 PM
    ObjectReference throws error, getResource requires a Provider instance and I don't know how to access that...
Powered by Linen
Title
i

important-jackal-88836

08/27/2018, 10:41 PM
ObjectReference throws error, getResource requires a Provider instance and I don't know how to access that...
View count: 2