Skip to content

Commit

Permalink
Add support for k8s 1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Jul 2, 2020
1 parent 26fad17 commit 7533bd2
Show file tree
Hide file tree
Showing 160 changed files with 3,912 additions and 383 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 cd scripts && ./get-py-version)
KUBE_VERSION ?= v1.18.0
KUBE_VERSION ?= v1.19.0-beta.2
SWAGGER_URL ?= https://github.com/kubernetes/kubernetes/raw/${KUBE_VERSION}/api/openapi-spec/swagger.json
OPENAPI_DIR := provider/pkg/gen/openapi-specs
OPENAPI_FILE := ${OPENAPI_DIR}/swagger-${KUBE_VERSION}.json
Expand Down
468 changes: 406 additions & 62 deletions provider/cmd/pulumi-resource-kubernetes/schema.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions provider/pkg/kinds/kinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const (
BatchV1 groupVersion = "batch/v1"
BatchV1B1 groupVersion = "batch/v1beta1"
BatchV2A1 groupVersion = "batch/v2alpha1"
CertificatesV1 groupVersion = "certificates.k8s.io/v1"
CertificatesV1B1 groupVersion = "certificates.k8s.io/v1beta1"
CoordinationV1 groupVersion = "coordination.k8s.io/v1"
CoordinationV1B1 groupVersion = "coordination.k8s.io/v1beta1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public InputList<string> ApiVersions
private InputList<string>? _operations;

/// <summary>
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
/// </summary>
public InputList<string> Operations
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed class RuleWithOperations
/// </summary>
public readonly ImmutableArray<string> ApiVersions;
/// <summary>
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
/// </summary>
public readonly ImmutableArray<string> Operations;
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public InputList<string> ApiVersions
private InputList<string>? _operations;

/// <summary>
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
/// </summary>
public InputList<string> Operations
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed class RuleWithOperations
/// </summary>
public readonly ImmutableArray<string> ApiVersions;
/// <summary>
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
/// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
/// </summary>
public readonly ImmutableArray<string> Operations;
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ApiRegistration/V1/Inputs/APIServiceSpecArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class APIServiceSpecArgs : Pulumi.ResourceArgs
public Input<bool>? InsecureSkipTLSVerify { get; set; }

/// <summary>
/// Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// </summary>
[Input("service")]
public Input<Pulumi.Kubernetes.Types.Inputs.ApiRegistration.V1.ServiceReferenceArgs>? Service { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ApiRegistration/V1/Outputs/APIServiceSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed class APIServiceSpec
/// </summary>
public readonly bool InsecureSkipTLSVerify;
/// <summary>
/// Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// </summary>
public readonly Pulumi.Kubernetes.Types.Outputs.ApiRegistration.V1.ServiceReference Service;
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class APIServiceSpecArgs : Pulumi.ResourceArgs
public Input<bool>? InsecureSkipTLSVerify { get; set; }

/// <summary>
/// Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// </summary>
[Input("service")]
public Input<Pulumi.Kubernetes.Types.Inputs.ApiRegistration.V1Beta1.ServiceReferenceArgs>? Service { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed class APIServiceSpec
/// </summary>
public readonly bool InsecureSkipTLSVerify;
/// <summary>
/// Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
/// </summary>
public readonly Pulumi.Kubernetes.Types.Outputs.ApiRegistration.V1Beta1.ServiceReference Service;
/// <summary>
Expand Down
139 changes: 139 additions & 0 deletions sdk/dotnet/Certificates/V1/CertificateSigningRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Kubernetes.Certificates.V1
{
/// <summary>
/// CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.
///
/// Kubelets use this API to obtain:
/// 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName).
/// 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName).
///
/// This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers.
/// </summary>
public partial class CertificateSigningRequest : KubernetesResource
{
/// <summary>
/// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
/// </summary>
[Output("apiVersion")]
public Output<string> ApiVersion { 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 CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
/// </summary>
[Output("kind")]
public Output<string> Kind { get; private set; } = null!;

[Output("metadata")]
public Output<Pulumi.Kubernetes.Types.Outputs.Meta.V1.ObjectMeta> Metadata { get; private set; } = null!;

/// <summary>
/// spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.
/// </summary>
[Output("spec")]
public Output<Pulumi.Kubernetes.Types.Outputs.Certificates.V1.CertificateSigningRequestSpec> Spec { get; private set; } = null!;

/// <summary>
/// status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure.
/// </summary>
[Output("status")]
public Output<Pulumi.Kubernetes.Types.Outputs.Certificates.V1.CertificateSigningRequestStatus> Status { get; private set; } = null!;


/// <summary>
/// Create a CertificateSigningRequest resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public CertificateSigningRequest(string name, Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? args = null, CustomResourceOptions? options = null)
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, MakeArgs(args), MakeResourceOptions(options, ""))
{
}
internal CertificateSigningRequest(string name, ImmutableDictionary<string, object?> dictionary, CustomResourceOptions? options = null)
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, new DictionaryResourceArgs(dictionary), MakeResourceOptions(options, ""))
{
}

private CertificateSigningRequest(string name, Input<string> id, CustomResourceOptions? options = null)
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, null, MakeResourceOptions(options, id))
{
}

private static Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? MakeArgs(Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? args)
{
args ??= new Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs();
args.ApiVersion = "certificates.k8s.io/v1";
args.Kind = "CertificateSigningRequest";
return args;
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new Alias { Type = "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing CertificateSigningRequest resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static CertificateSigningRequest Get(string name, Input<string> id, CustomResourceOptions? options = null)
{
return new CertificateSigningRequest(name, id, options);
}
}
}
namespace Pulumi.Kubernetes.Types.Inputs.Certificates.V1
{

public class CertificateSigningRequestArgs : Pulumi.ResourceArgs
{
/// <summary>
/// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
/// </summary>
[Input("apiVersion")]
public Input<string>? ApiVersion { get; set; }

/// <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 CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
/// </summary>
[Input("kind")]
public Input<string>? Kind { get; set; }

[Input("metadata")]
public Input<Pulumi.Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs>? Metadata { get; set; }

/// <summary>
/// spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.
/// </summary>
[Input("spec", required: true)]
public Input<Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestSpecArgs> Spec { get; set; } = null!;

public CertificateSigningRequestArgs()
{
}
}
}
Loading

0 comments on commit 7533bd2

Please sign in to comment.