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
  • r

    rough-parrot-6341

    10/04/2020, 9:45 PM
    is there a way I can test/debug stack outputs without doing deployment steps? so I just want to fetch a value from the existing configuration without changing anything, which doesn't seem to work and I'd like to debug what is it doing
  • r

    rough-parrot-6341

    10/04/2020, 9:45 PM
    const nginxIngress = new k8s.yaml.ConfigFile("nginx-ingress", {
        file: "./kubernetes/yamls/nginx-ingress-v0.40.1.yaml",
    }, { provider });
    const nginxLoadBalancer = nginxIngress.getResource("v1/Service", "ingress-nginx-controller");
    
    export const externalIps = nginxLoadBalancer.spec.externalIPs;
  • r

    rough-parrot-6341

    10/04/2020, 9:45 PM
    so this is what I have now but
    externalIps
    is empty and the stack output says
    No output values currently in this stack
  • r

    rough-parrot-6341

    10/04/2020, 9:45 PM
    I'm guessing the way I try to get the external IP is not correct, but I have no idea how would I start debugging this
  • r

    rough-parrot-6341

    10/04/2020, 10:50 PM
    I didn't figure out a better way to test this, but the issue itself was resolved by adding the correct namespace to the
    getResource
    call and the actual IP was found from
    nginxLoadBalancer.status.loadBalancer.ingress
  • r

    rough-parrot-6341

    10/04/2020, 11:18 PM
    can I somehow dynamically build a kubernetes resource without defining it in yaml and importing from configfile?
  • r

    rough-parrot-6341

    10/04/2020, 11:18 PM
    something not built in
  • r

    rough-parrot-6341

    10/04/2020, 11:19 PM
    I want to define a cert-manager ClusterIssuer
  • r

    rough-parrot-6341

    10/04/2020, 11:20 PM
    https://www.pulumi.com/docs/reference/pkg/kubernetes/apiextensions/customresource/ ah
  • r

    rough-parrot-6341

    10/04/2020, 11:39 PM
    well this is unfortunate
  • r

    rough-parrot-6341

    10/04/2020, 11:39 PM
    a helm chart is creating a random certificate on install, which pulumi naturally diffs on every execution and correctly identifies as having changed
  • r

    rough-parrot-6341

    10/04/2020, 11:40 PM
    but since the chart is rendered during runtime, I don't really know how should I write the
    ignoreChanges
    clause for that
  • r

    rough-parrot-6341

    10/04/2020, 11:40 PM
  • r

    rough-parrot-6341

    10/04/2020, 11:41 PM
    how would I go about ignoring this change?
  • r

    rough-parrot-6341

    10/04/2020, 11:41 PM
    given that I'm just refering a helm chart
  • r

    rough-parrot-6341

    10/04/2020, 11:46 PM
    I suppose one option is to generate the dynamically generated parts myself and get a handle on them that way, but that feels like a workaround that shouldn't be required
  • r

    rough-parrot-6341

    10/05/2020, 12:02 AM
    I can see they're listed under the chart resource as "children" according to pulumi
  • r

    rough-parrot-6341

    10/05/2020, 12:02 AM
  • r

    rough-parrot-6341

    10/05/2020, 12:02 AM
    but is it even possible to ignore changes to children? the other use cases seem to ignore changes to properties, which seem to be treated differently
  • r

    rough-parrot-6341

    10/05/2020, 12:11 AM
    ah right, so the issue is that
    ignoreChanges
    only works for properties defined in the code, not for what pulumi checks for state-sync
  • r

    rough-parrot-6341

    10/05/2020, 12:17 AM
    the more I try to deploy helm charts with pulumi the more it feels like I shouldn't do that
  • r

    rough-parrot-6341

    10/05/2020, 12:17 AM
    it just so happens many stacks are distributed as helm charts
  • l

    limited-rainbow-51650

    10/05/2020, 7:44 AM
    If I create my own subclass of
    ComponentResource
    , is it obliged to create my resources in the constructor? Or can I delay the creation of (some of) them?
    Also inside of its constructor, you will allocate any child resources, passing the
    parent
    option as appropriate to ensure component children are parented correctly.
    https://www.pulumi.com/docs/intro/concepts/programming-model/#authoring-a-new-component
    c
    l
    • 3
    • 2
  • h

    handsome-dinner-91163

    10/05/2020, 9:12 AM
    Hey folks, wondering if there's a way of unexporting/removing a stack output for good. Couldn't find one in the docs / open issues
    l
    • 2
    • 1
  • n

    nutritious-shampoo-16116

    10/05/2020, 10:28 AM
    is it possible to inject additional config values at runtime outside of tests? I have a secret stored on AWS that I need to inject while using the github provider, I wanted to avoid storing as a config secret and as env var. What I am trying to do is fetching it at runtime for further use but it is not working
    l
    • 2
    • 2
  • m

    mysterious-portugal-46322

    10/05/2020, 10:45 AM
    Hi, are you planning to add Gtihub Org level secret support?
  • o

    orange-dog-73995

    10/05/2020, 11:10 AM
    Greetings from Moldova!
  • j

    jolly-lifeguard-22556

    10/05/2020, 1:09 PM
    Is it possible to move an entire Pulumi program from one Git repo to another without disrupting any of the resources?
  • r

    rough-parrot-6341

    10/05/2020, 1:45 PM
    I don't think the program is linked to the git repo, but to the stack
  • r

    rough-parrot-6341

    10/05/2020, 1:45 PM
    So I'd imagine you're fine as long as you connect it to the correct stack
Powered by Linen
Title
r

rough-parrot-6341

10/05/2020, 1:45 PM
So I'd imagine you're fine as long as you connect it to the correct stack
View count: 1