Skip to content

Commit bd38a5c

Browse files
committed
feat: enable golang
1 parent 3214bae commit bd38a5c

File tree

7 files changed

+105
-2
lines changed

7 files changed

+105
-2
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mergify.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,27 @@ const project = new cdktf.ConstructLibraryCdktf({
3939
distName: "cdktf-gke-auth",
4040
module: "cdktf_gke_auth",
4141
},
42+
43+
// Requires "MAVEN_GPG_PRIVATE_KEY", "MAVEN_GPG_PRIVATE_KEY_PASSPHRASE", "MAVEN_PASSWORD",
44+
// "MAVEN_USERNAME", and "MAVEN_STAGING_PROFILE_ID" to be set.
45+
// publishToMaven: {
46+
// javaPackage: "com.your-org.your-project-name ",
47+
// mavenGroupId: "com.your-org",
48+
// mavenArtifactId: "your-project-name",
49+
// },
50+
51+
// Requires "NUGET_API_KEY" to be set.
52+
// publishToNuget: {
53+
// dotNetNamespace: "01walid.CDKTFGKEAuth",
54+
// packageId: "01walid.CDKTFGKEAuth",
55+
// },
56+
57+
publishToGo: {
58+
gitUserName: "01walid",
59+
gitUserEmail: "hi@walid.dev",
60+
moduleName: "github.com/01walid/cdktf-gke-auth/go",
61+
},
62+
4263
keywords: [
4364
"cdktf",
4465
"gke",

package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DataGoogleContainerCluster } from "@cdktf/provider-google/lib/data-goog
33
import { Fn, ITerraformDependable } from "cdktf";
44
import { Construct } from "constructs";
55

6-
export interface GkeControlPlaneProps {
6+
export interface ClusterInfo {
77
readonly clusterName: string;
88
readonly location: string;
99
readonly projectId: string;
@@ -19,7 +19,7 @@ export class GKEAuth extends Construct implements ITerraformDependable {
1919
readonly clusterInfo: DataGoogleContainerCluster;
2020
readonly clientConfig: DataGoogleClientConfig;
2121

22-
constructor(scope: Construct, id: string, props: GkeControlPlaneProps) {
22+
constructor(scope: Construct, id: string, props: ClusterInfo) {
2323
super(scope, id);
2424

2525
this.clusterInfo = new DataGoogleContainerCluster(this, "gke-cluster", {

0 commit comments

Comments
 (0)