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

Update Java examples to output versioned invokes #1261

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Aug 10, 2022

This code now compiles and is ready to go since latest releases of providers have propagated the breaking changes.

  • Fix aws-java-webserver example (mvn compile works)
  • Fix aws-java-eks-minimal example (mvn compile works)

@t0yv0 t0yv0 requested a review from dixler August 10, 2022 16:29
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.

was able to run the first one via pulumi pre
the second one via mvn compile

  • Fix aws-java-webserver example (mvn compile works)
  • Fix aws-java-eks-minimal example (mvn compile works)

I was able to run pulumi pre on the first

there was an exception when running the second one

    Kubeconfig user entry is using deprecated API version client.authentication.k8s.io/v1alpha1. Run 'aws eks update-kubeconfig' to update.
 
    Kubeconfig user entry is using deprecated API version client.authentication.k8s.io/v1alpha1. Run 'aws eks update-kubeconfig' to update.
 
    warning: aws:ec2/getSubnetIds:getSubnetIds verification warning: Deprecated Resource
    error: Running program [PID: 430506](/usr/lib/jvm/java-11-openjdk/bin/java -classpath /opt/maven/boot/plexus-classworlds-2.6.0.jar -Dclassworlds.conf=/opt/maven/bin/m2.conf -Dmaven.home=/opt/maven -Dlibrary.jansi.path=/opt/maven/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/kdixler/Documents/examples/aws-java-eks-minimal org.codehaus.plexus.classworlds.launcher.Launcher --no-transfer-progress compile exec:java) failed with an unhandled exception:
    io.grpc.StatusRuntimeException: UNAVAILABLE: error reading from server: read tcp 127.0.0.1:54140->127.0.0.1:45969: use of closed network connection
    	at io.grpc.Status.asRuntimeException(Status.java:535)
    	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:533)
    	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
    	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
    	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
    	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
    	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
    	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	at java.base/java.lang.Thread.run(Thread.java:829)

@t0yv0
Copy link
Member Author

t0yv0 commented Aug 10, 2022

Hm can't repro here:

anton@Antons-MacBook-Pro> pulumi preview               ~/examples/aws-java-eks-minimal
Previewing update (dev)

View Live: https://app.pulumi.com/t0yv0/eks-minimal/dev/previews/37b45c6e-3247-4254-ac31-6f0f5ce3c58b

     Type                                   Name                                      
 +   pulumi:pulumi:Stack                    eks-minimal-dev                           
 +   └─ eks:index:Cluster                   my-cluster                            
 +      ├─ eks:index:ServiceRole            my-cluster-instanceRole               
 +      │  ├─ aws:iam:Role                  my-cluster-instanceRole-role        
 +      │  ├─ aws:iam:RolePolicyAttachment  my-cluster-instanceRole-3eb088f2    
 +      │  ├─ aws:iam:RolePolicyAttachment  my-cluster-instanceRole-e1b295bd    
 +      │  └─ aws:iam:RolePolicyAttachment  my-cluster-instanceRole-03516f97    
 +      ├─ eks:index:ServiceRole            my-cluster-eksRole                    
 +      │  ├─ aws:iam:Role                  my-cluster-eksRole-role             
 +      │  ├─ aws:iam:RolePolicyAttachment  my-cluster-eksRole-90eb1c99         
 +      │  └─ aws:iam:RolePolicyAttachment  my-cluster-eksRole-4b490823         
 +      ├─ aws:ec2:SecurityGroup            my-cluster-eksClusterSecurityGroup    
 +      ├─ eks:index:RandomSuffix           my-cluster-cfnStackName               
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksClusterInternetEgressRul
 +      ├─ aws:iam:InstanceProfile          my-cluster-instanceProfile            
 +      ├─ aws:eks:Cluster                  my-cluster-eksCluster                 
 +      ├─ pulumi:providers:kubernetes      my-cluster-eks-k8s                    
 +      ├─ aws:ec2:SecurityGroup            my-cluster-nodeSecurityGroup          
 +      ├─ eks:index:VpcCni                 my-cluster-vpc-cni                    
 +      ├─ kubernetes:core/v1:ConfigMap     my-cluster-nodeAccess                 
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksNodeInternetEgressRule  
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksNodeIngressRule         
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksClusterIngressRule      
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksNodeClusterIngressRule  
 +      ├─ aws:ec2:SecurityGroupRule        my-cluster-eksExtApiServerClusterIngre
 +      ├─ aws:ec2:LaunchConfiguration      my-cluster-nodeLaunchConfiguration    
 +      ├─ aws:cloudformation:Stack         my-cluster-nodes                      
 +      └─ pulumi:providers:kubernetes      my-cluster-provider                   
 
Diagnostics:
  pulumi:pulumi:Stack (eks-minimal-dev):
    warning: aws:ec2/getSubnetIds:getSubnetIds verification warning: Deprecated Resource
 
Outputs:
    kubeconfig     : output<string>
    subnetIdsOutput: "subnet-2728e841,subnet-32a83b7f"
    vpcIdOutput    : "vpc-b6f1edcc"

@t0yv0 t0yv0 merged commit 294e1a9 into master Aug 10, 2022
@pulumi-bot pulumi-bot deleted the t0yv0/fix-more-aws-java-examples branch August 10, 2022 18:20
@t0yv0 t0yv0 added this to the 0.76 milestone Aug 10, 2022
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

2 participants