Skip to content

Commit

Permalink
Add support for k8s 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Feb 28, 2020
1 parent 62b6475 commit d194a85
Show file tree
Hide file tree
Showing 13 changed files with 739 additions and 130 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PROVIDER := pulumi-resource-${PACK}
CODEGEN := pulumi-gen-${PACK}
VERSION ?= $(shell scripts/get-version)
PYPI_VERSION := $(shell scripts/get-py-version)
KUBE_VERSION ?= v1.17.0
KUBE_VERSION ?= v1.18.0-beta.1
SWAGGER_URL ?= https://github.com/kubernetes/kubernetes/raw/${KUBE_VERSION}/api/openapi-spec/swagger.json
OPENAPI_DIR := pkg/gen/openapi-specs
OPENAPI_FILE := ${OPENAPI_DIR}/swagger-${KUBE_VERSION}.json
Expand Down
9 changes: 9 additions & 0 deletions sdk/dotnet/Core/V1/ConfigMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ public partial class ConfigMap : KubernetesResource
[Output("data")]
public Output<ImmutableDictionary<string, string>> Data { get; private set; } = null!;

/// <summary>
/// Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated
/// (only object metadata can be modified). If not set to true, the field can be modified at
/// any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes
/// feature gate.
/// </summary>
[Output("immutable")]
public Output<bool> Immutable { get; private set; } = null!;

/// <summary>
/// Kind is a string value representing the REST resource this object represents. Servers
/// may infer this from the endpoint the client submits requests to. Cannot be updated. In
Expand Down
9 changes: 9 additions & 0 deletions sdk/dotnet/Core/V1/Secret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ public partial class Secret : KubernetesResource
[Output("data")]
public Output<ImmutableDictionary<string, string>> Data { get; private set; } = null!;

/// <summary>
/// Immutable, if set to true, ensures that data stored in the Secret cannot be updated
/// (only object metadata can be modified). If not set to true, the field can be modified at
/// any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes
/// feature gate.
/// </summary>
[Output("immutable")]
public Output<bool> Immutable { get; private set; } = null!;

/// <summary>
/// Kind is a string value representing the REST resource this object represents. Servers
/// may infer this from the endpoint the client submits requests to. Cannot be updated. In
Expand Down
230 changes: 185 additions & 45 deletions sdk/dotnet/Types/Input.cs

Large diffs are not rendered by default.

204 changes: 183 additions & 21 deletions sdk/dotnet/Types/Output.cs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions sdk/nodejs/core/v1/ConfigMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ import { getVersion } from "../../version";
*/
public readonly data: pulumi.Output<{[key: string]: pulumi.Output<string>}>;

/**
* Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated
* (only object metadata can be modified). If not set to true, the field can be modified at
* any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes
* feature gate.
*/
public readonly immutable: pulumi.Output<boolean>;

/**
* Kind is a string value representing the REST resource this object represents. Servers may
* infer this from the endpoint the client submits requests to. Cannot be updated. In
Expand Down Expand Up @@ -92,6 +100,7 @@ import { getVersion } from "../../version";
props["apiVersion"] = "v1";
props["binaryData"] = args?.binaryData;
props["data"] = args?.data;
props["immutable"] = args?.immutable;
props["kind"] = "ConfigMap";
props["metadata"] = args?.metadata;

Expand Down
9 changes: 9 additions & 0 deletions sdk/nodejs/core/v1/Secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ import { getVersion } from "../../version";
*/
public readonly data: pulumi.Output<object>;

/**
* Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only
* object metadata can be modified). If not set to true, the field can be modified at any
* time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes feature
* gate.
*/
public readonly immutable: pulumi.Output<boolean>;

/**
* Kind is a string value representing the REST resource this object represents. Servers may
* infer this from the endpoint the client submits requests to. Cannot be updated. In
Expand Down Expand Up @@ -106,6 +114,7 @@ import { getVersion } from "../../version";

props["apiVersion"] = "v1";
props["data"] = args?.data === undefined ? undefined : pulumi.secret(args?.data);
props["immutable"] = args?.immutable;
props["kind"] = "Secret";
props["metadata"] = args?.metadata;
props["stringData"] = args?.stringData === undefined ? undefined : pulumi.secret(args?.stringData);
Expand Down
Loading

0 comments on commit d194a85

Please sign in to comment.