Skip to content

Commit

Permalink
Add support for k8s 1.15 (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone authored Jun 19, 2019
1 parent b9d6a35 commit 2699db6
Show file tree
Hide file tree
Showing 15 changed files with 1,127 additions and 211 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## 0.24.1 (Unreleased)
## 0.25.0 (June 19, 2019)

### Supported Kubernetes versions

- v1.15.x
- v1.14.x
- v1.13.x
- v1.12.x

### Major changes

- None
- Add support for Kubernetes v1.15.0 (https://github.com/pulumi/pulumi-kubernetes/pull/557)

### Improvements

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROVIDER := pulumi-resource-${PACK}
CODEGEN := pulumi-gen-${PACK}
VERSION ?= $(shell scripts/get-version)
PYPI_VERSION := $(shell scripts/get-py-version)
KUBE_VERSION ?= v1.14.0
KUBE_VERSION ?= v1.15.0
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
3 changes: 3 additions & 0 deletions pkg/gen/typegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ func createGroups(definitionsJSON map[string]interface{}, opts groupOpts) []*Gro
// Python currently does not emit types for use.
}

// `-` is invalid in TS variable names, so replace with `_`
propName = strings.ReplaceAll(propName, "-", "_")

// Create a default value for the field.
defaultValue := fmt.Sprintf("args && args.%s || undefined", propName)
switch propName {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { getVersion } from "../../version";
/**
* Webhooks is a list of webhooks and the affected resources and operations.
*/
public readonly webhooks: pulumi.Output<outputApi.admissionregistration.v1beta1.Webhook[]>;
public readonly webhooks: pulumi.Output<outputApi.admissionregistration.v1beta1.MutatingWebhook[]>;

/**
* Get the state of an existing `MutatingWebhookConfiguration` resource, as identified by `id`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { getVersion } from "../../version";
/**
* Webhooks is a list of webhooks and the affected resources and operations.
*/
public readonly webhooks: pulumi.Output<outputApi.admissionregistration.v1beta1.Webhook[]>;
public readonly webhooks: pulumi.Output<outputApi.admissionregistration.v1beta1.ValidatingWebhook[]>;

/**
* Get the state of an existing `ValidatingWebhookConfiguration` resource, as identified by `id`.
Expand Down
8 changes: 8 additions & 0 deletions sdk/nodejs/scheduling/v1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ import { getVersion } from "../../version";
*/
public readonly metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;

/**
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never,
* PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level
* and is only honored by servers that enable the NonPreemptingPriority feature.
*/
public readonly preemptionPolicy: pulumi.Output<string>;

/**
* The value of this priority class. This is the actual priority that pods receive when they
* have the name of this class in their pod spec.
Expand Down Expand Up @@ -99,6 +106,7 @@ import { getVersion } from "../../version";
inputs["globalDefault"] = args && args.globalDefault || undefined;
inputs["kind"] = "PriorityClass";
inputs["metadata"] = args && args.metadata || undefined;
inputs["preemptionPolicy"] = args && args.preemptionPolicy || undefined;
inputs["value"] = args && args.value || undefined;

if (!opts) {
Expand Down
8 changes: 8 additions & 0 deletions sdk/nodejs/scheduling/v1alpha1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ import { getVersion } from "../../version";
*/
public readonly metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;

/**
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never,
* PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level
* and is only honored by servers that enable the NonPreemptingPriority feature.
*/
public readonly preemptionPolicy: pulumi.Output<string>;

/**
* The value of this priority class. This is the actual priority that pods receive when they
* have the name of this class in their pod spec.
Expand Down Expand Up @@ -100,6 +107,7 @@ import { getVersion } from "../../version";
inputs["globalDefault"] = args && args.globalDefault || undefined;
inputs["kind"] = "PriorityClass";
inputs["metadata"] = args && args.metadata || undefined;
inputs["preemptionPolicy"] = args && args.preemptionPolicy || undefined;
inputs["value"] = args && args.value || undefined;

if (!opts) {
Expand Down
8 changes: 8 additions & 0 deletions sdk/nodejs/scheduling/v1beta1/PriorityClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ import { getVersion } from "../../version";
*/
public readonly metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;

/**
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never,
* PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level
* and is only honored by servers that enable the NonPreemptingPriority feature.
*/
public readonly preemptionPolicy: pulumi.Output<string>;

/**
* The value of this priority class. This is the actual priority that pods receive when they
* have the name of this class in their pod spec.
Expand Down Expand Up @@ -100,6 +107,7 @@ import { getVersion } from "../../version";
inputs["globalDefault"] = args && args.globalDefault || undefined;
inputs["kind"] = "PriorityClass";
inputs["metadata"] = args && args.metadata || undefined;
inputs["preemptionPolicy"] = args && args.preemptionPolicy || undefined;
inputs["value"] = args && args.value || undefined;

if (!opts) {
Expand Down
Loading

0 comments on commit 2699db6

Please sign in to comment.