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 Jun 4, 2020
1 parent 72b173c commit 2be04f4
Show file tree
Hide file tree
Showing 124 changed files with 522 additions and 402 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.1
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ namespace Pulumi.Kubernetes.Types.Inputs.Certificates.V1Beta1

public class CertificateSigningRequestConditionArgs : Pulumi.ResourceArgs
{
/// <summary>
/// lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.
/// </summary>
[Input("lastTransitionTime")]
public Input<string>? LastTransitionTime { get; set; }

/// <summary>
/// timestamp for the last update to this condition
/// </summary>
Expand All @@ -31,7 +37,13 @@ public class CertificateSigningRequestConditionArgs : Pulumi.ResourceArgs
public Input<string>? Reason { get; set; }

/// <summary>
/// request approval state, currently Approved or Denied.
/// Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". Defaults to "True". If unset, should be treated as "True".
/// </summary>
[Input("status")]
public Input<string>? Status { get; set; }

/// <summary>
/// type of the condition. Known conditions include "Approved", "Denied", and "Failed".
/// </summary>
[Input("type", required: true)]
public Input<string> Type { get; set; } = null!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace Pulumi.Kubernetes.Types.Outputs.Certificates.V1Beta1
[OutputType]
public sealed class CertificateSigningRequestCondition
{
/// <summary>
/// lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.
/// </summary>
public readonly string LastTransitionTime;
/// <summary>
/// timestamp for the last update to this condition
/// </summary>
Expand All @@ -26,23 +30,33 @@ public sealed class CertificateSigningRequestCondition
/// </summary>
public readonly string Reason;
/// <summary>
/// request approval state, currently Approved or Denied.
/// Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". Defaults to "True". If unset, should be treated as "True".
/// </summary>
public readonly string Status;
/// <summary>
/// type of the condition. Known conditions include "Approved", "Denied", and "Failed".
/// </summary>
public readonly string Type;

[OutputConstructor]
private CertificateSigningRequestCondition(
string lastTransitionTime,

string lastUpdateTime,

string message,

string reason,

string status,

string type)
{
LastTransitionTime = lastTransitionTime;
LastUpdateTime = lastUpdateTime;
Message = message;
Reason = reason;
Status = status;
Type = type;
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Core/V1/ConfigMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public partial class ConfigMap : KubernetesResource
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.
/// 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 a beta field enabled by ImmutableEphemeralVolumes feature gate.
/// </summary>
[Output("immutable")]
public Output<bool> Immutable { get; private set; } = null!;
Expand Down Expand Up @@ -141,7 +141,7 @@ public InputMap<string> Data
}

/// <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.
/// 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 a beta field enabled by ImmutableEphemeralVolumes feature gate.
/// </summary>
[Input("immutable")]
public Input<bool>? Immutable { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/ConfigMapVolumeSourceArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Pulumi.Kubernetes.Types.Inputs.Core.V1
public class ConfigMapVolumeSourceArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// </summary>
[Input("defaultMode")]
public Input<int>? DefaultMode { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/DownwardAPIVolumeFileArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class DownwardAPIVolumeFileArgs : Pulumi.ResourceArgs
public Input<Pulumi.Kubernetes.Types.Inputs.Core.V1.ObjectFieldSelectorArgs>? FieldRef { get; set; }

/// <summary>
/// Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// </summary>
[Input("mode")]
public Input<int>? Mode { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/DownwardAPIVolumeSourceArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Pulumi.Kubernetes.Types.Inputs.Core.V1
public class DownwardAPIVolumeSourceArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// </summary>
[Input("defaultMode")]
public Input<int>? DefaultMode { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/EndpointPortArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Pulumi.Kubernetes.Types.Inputs.Core.V1
public class EndpointPortArgs : Pulumi.ResourceArgs
{
/// <summary>
/// The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.
/// The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.
/// </summary>
[Input("appProtocol")]
public Input<string>? AppProtocol { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/EnvVarSourceArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class EnvVarSourceArgs : Pulumi.ResourceArgs
public Input<Pulumi.Kubernetes.Types.Inputs.Core.V1.ConfigMapKeySelectorArgs>? ConfigMapKeyRef { get; set; }

/// <summary>
/// Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
/// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['&lt;KEY&gt;']`, `metadata.annotations['&lt;KEY&gt;']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
/// </summary>
[Input("fieldRef")]
public Input<Pulumi.Kubernetes.Types.Inputs.Core.V1.ObjectFieldSelectorArgs>? FieldRef { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/KeyToPathArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class KeyToPathArgs : Pulumi.ResourceArgs
public Input<string> Key { get; set; } = null!;

/// <summary>
/// Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// </summary>
[Input("mode")]
public Input<int>? Mode { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/NodeSystemInfoArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class NodeSystemInfoArgs : Pulumi.ResourceArgs
public Input<string> OsImage { get; set; } = null!;

/// <summary>
/// SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html
/// SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
/// </summary>
[Input("systemUUID", required: true)]
public Input<string> SystemUUID { get; set; } = null!;
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Core/V1/Inputs/ProjectedVolumeSourceArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Pulumi.Kubernetes.Types.Inputs.Core.V1
public class ProjectedVolumeSourceArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
/// </summary>
[Input("defaultMode")]
public Input<int>? DefaultMode { get; set; }
Expand Down
Loading

0 comments on commit 2be04f4

Please sign in to comment.