Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gcp-java-gke-hello-world example #1260

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Aug 10, 2022

  • Update to breaking changes from Output-versioned invokes
  • Update to breaking changes from K8S import structure change

TO test:

cd gcp-java-gke-hello-world
mvn compile

@t0yv0 t0yv0 requested a review from dixler August 10, 2022 14:29
@t0yv0
Copy link
Member Author

t0yv0 commented Aug 10, 2022

CC @pawelprazak

Copy link
Contributor

@dixler dixler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after:

kdixler@kdixler-20xw004aus ..ents/examples/gcp-java-gke-hello-world (git)-[t0yv0/fix-gcp-java-gke-hello-world] % pulumi config set gcp:project pulumi-development                                                    
Please choose a stack, or create a new one: dev
kdixler@kdixler-20xw004aus ..ents/examples/gcp-java-gke-hello-world (git)-[t0yv0/fix-gcp-java-gke-hello-world] % pulumi config set gcp:zone us-west1             
kdixler@kdixler-20xw004aus ..ents/examples/gcp-java-gke-hello-world (git)-[t0yv0/fix-gcp-java-gke-hello-world] % pulumi pre                                      
Previewing update (dev)

View Live: https://app.pulumi.com/dixler/gcp-java-gke-hello-world/dev/previews/f7922f1b-074d-466e-8e83-c8a449d55685

     Type                              Name                          Plan       
 +   pulumi:pulumi:Stack               gcp-java-gke-hello-world-dev  create     
 +   ├─ gcp:container:Cluster          helloworld                    create     
 +   ├─ gcp:container:NodePool         primary-node-pool             create     
 +   ├─ pulumi:providers:kubernetes    helloworld                    create     
 +   ├─ kubernetes:core/v1:Namespace   helloworld                    create     
 +   ├─ kubernetes:core/v1:Service     helloworld                    create     
 +   └─ kubernetes:apps/v1:Deployment  helloworld                    create     
 
Outputs:
    clusterName    : "helloworld-c0ad4dd"
    deploymentName : output<string>
    kubeconfig     : output<string>
    masterVersion  : "1.24.3-gke.200"
    namespaceName  : output<string>
    serviceName    : output<string>
    servicePublicIP: output<string>

Resources:
    + 7 to create

I notice that running an initial pulumi pre is slow to give feedback on what it's doing for this example. Might we consider adding spinners, etc. to indicate to the user what pulumi is currently doing?

The error message could be better. opened pulumi/pulumi-java#785 and added it to the epic

@t0yv0 t0yv0 merged commit 5c1dd82 into master Aug 10, 2022
@pulumi-bot pulumi-bot deleted the t0yv0/fix-gcp-java-gke-hello-world branch August 10, 2022 15:41
@t0yv0 t0yv0 added this to the 0.76 milestone Aug 10, 2022
ContainerFunctions.getEngineVersions()
.thenApply(GetEngineVersionsResult::latestMasterVersion).join()
);
final var masterVersion = ctx.config().get("masterVersion").map(Output::of)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants