pulumi / pulumi/pulumi-java

Add support for Kubernetes cluster for gcp or other cloud provider using a template

Open
#1,165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/docs kind/enhancement
Dominant language
Java
Stars
85
Forks
26
Avg merge
11h 49m
Merged PRs (30d)
22

Description

Can we have a template for kubernetes cluster using java similar to this - https://www.pulumi.com/templates/kubernetes/gcp/

Since there no version for Java---but we can also do that on your own with the power of Pulumi convert! Here’s how:

  • Use the Kubernetes GCP YAML template: pulumi new kubernetes-gcp-yaml

  • Run pulumi convert --language java --out <directory>

  • Fine-tune the resulting Java program as needed

However with the above command getting an exception as

[ERROR] COMPILATION ERROR :
[ERROR] /Users/san/project/Fetebird-deployment/template/java-project/src/main/java/generated_program/App.java:[100,20] text blocks are not supported in -source 11
  (use -source 15 or higher to enable text blocks)

I have the below java version

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06)
OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pulumi new kubernetes-gcp-yaml followed by pulumi convert --language java --out <directory>, then inspect the generated generated_program/App.java and the Java project configuration. Determine the intended cloud-provider template scope and verify that the generated Java project completes without the reported Java 11 text-block compilation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, java, kubernetes
Domain
cloud, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.