crd

package
v0.0.0-...-a2a49da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsnodetemplatesKarpenterK8SAwsCRD = &apiextensionsv1.CustomResourceDefinition{
	ObjectMeta: metav1.ObjectMeta{
		Annotations: map[string]string{"controller-gen.kubebuilder.io/version": "v0.11.3"},
		Name:        "awsnodetemplates.karpenter.k8s.aws",
	},
	Spec: apiextensionsv1.CustomResourceDefinitionSpec{
		Group: "karpenter.k8s.aws",
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Categories: []string{"karpenter"},
			Kind:       "AWSNodeTemplate",
			ListKind:   "AWSNodeTemplateList",
			Plural:     "awsnodetemplates",
			Singular:   "awsnodetemplate",
		},
		Scope: apiextensionsv1.ResourceScope("Cluster"),
		Versions: []apiextensionsv1.CustomResourceDefinitionVersion{
			{
				Name: "v1alpha1",
				Schema: &apiextensionsv1.CustomResourceValidation{
					OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
						Description: "AWSNodeTemplate is the Schema for the AWSNodeTemplate API",
						Properties: map[string]apiextensionsv1.JSONSchemaProps{
							"apiVersion": {
								Description: "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",
								Type:        "string",
							},
							"kind": {
								Description: "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",
								Type:        "string",
							},
							"metadata": {Type: "object"},
							"spec": {
								Description: "AWSNodeTemplateSpec is the top level specification for the AWS Karpenter Provider. This will contain configuration necessary to launch instances in AWS.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"amiFamily": {
										Description: "AMIFamily is the AMI family that instances use.",
										Type:        "string",
									},
									"amiSelector": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "AMISelector discovers AMIs to be used by Amazon EC2 tags.",
										Type:        "object",
									},
									"apiVersion": {
										Description: "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",
										Type:        "string",
									},
									"blockDeviceMappings": {
										Description: "BlockDeviceMappings to be applied to provisioned nodes.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"deviceName": {
														Description: "The device name (for example, /dev/sdh or xvdh).",
														Type:        "string",
													},
													"ebs": {
														Description: "EBS contains parameters used to automatically set up EBS volumes when an instance is launched.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"deleteOnTermination": {
																Description: "DeleteOnTermination indicates whether the EBS volume is deleted on instance termination.",
																Type:        "boolean",
															},
															"encrypted": {
																Description: "Encrypted indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.",
																Type:        "boolean",
															},
															"iops": {
																Description: "IOPS is the number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. \n The following are the supported values for each volume type: \n * gp3: 3,000-16,000 IOPS \n * io1: 100-64,000 IOPS \n * io2: 100-64,000 IOPS \n For io1 and io2 volumes, we guarantee 64,000 IOPS only for Instances built on the Nitro System (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). Other instance families guarantee performance up to 32,000 IOPS. \n This parameter is supported for io1, io2, and gp3 volumes only. This parameter is not supported for gp2, st1, sc1, or standard volumes.",
																Format:      "int64",
																Type:        "integer",
															},
															"kmsKeyID": {
																Description: "KMSKeyID (ARN) of the symmetric Key Management Service (KMS) CMK used for encryption.",
																Type:        "string",
															},
															"snapshotID": {
																Description: "SnapshotID is the ID of an EBS snapshot",
																Type:        "string",
															},
															"throughput": {
																Description: "Throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000.",
																Format:      "int64",
																Type:        "integer",
															},
															"volumeSize": {
																AnyOf: []apiextensionsv1.JSONSchemaProps{
																	{Type: "integer"},
																	{Type: "string"},
																},
																Description:  "VolumeSize in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type: \n * gp2 and gp3: 1-16,384 \n * io1 and io2: 4-16,384 \n * st1 and sc1: 125-16,384 \n * standard: 1-1,024",
																Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																XIntOrString: true,
															},
															"volumeType": {
																Description: "VolumeType of the block device. For more information, see Amazon EBS volume types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the Amazon Elastic Compute Cloud User Guide.",
																Type:        "string",
															},
														},
														Type: "object",
													},
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"context": {
										Description: "Context is a Reserved field in EC2 APIs https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html",
										Type:        "string",
									},
									"detailedMonitoring": {
										Description: "DetailedMonitoring controls if detailed monitoring is enabled for instances that are launched",
										Type:        "boolean",
									},
									"instanceProfile": {
										Description: "InstanceProfile is the AWS identity that instances use.",
										Type:        "string",
									},
									"kind": {
										Description: "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",
										Type:        "string",
									},
									"launchTemplate": {
										Description: "LaunchTemplateName for the node. If not specified, a launch template will be generated. NOTE: This field is for specifying a custom launch template and is exposed in the Spec as `launchTemplate` for backwards compatibility.",
										Type:        "string",
									},
									"metadataOptions": {
										Description: "MetadataOptions for the generated launch template of provisioned nodes. \n This specifies the exposure of the Instance Metadata Service to provisioned EC2 nodes. For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the Amazon Elastic Compute Cloud User Guide. \n Refer to recommended, security best practices (https://aws.github.io/aws-eks-best-practices/security/docs/iam/#restrict-access-to-the-instance-profile-assigned-to-the-worker-node) for limiting exposure of Instance Metadata and User Data to pods. If omitted, defaults to httpEndpoint enabled, with httpProtocolIPv6 disabled, with httpPutResponseLimit of 2, and with httpTokens required.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"httpEndpoint": {
												Description: "HTTPEndpoint enables or disables the HTTP metadata endpoint on provisioned nodes. If metadata options is non-nil, but this parameter is not specified, the default state is \"enabled\". \n If you specify a value of \"disabled\", instance metadata will not be accessible on the node.",
												Type:        "string",
											},
											"httpProtocolIPv6": {
												Description: "HTTPProtocolIPv6 enables or disables the IPv6 endpoint for the instance metadata service on provisioned nodes. If metadata options is non-nil, but this parameter is not specified, the default state is \"disabled\".",
												Type:        "string",
											},
											"httpPutResponseHopLimit": {
												Description: "HTTPPutResponseHopLimit is the desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Possible values are integers from 1 to 64. If metadata options is non-nil, but this parameter is not specified, the default value is 1.",
												Format:      "int64",
												Type:        "integer",
											},
											"httpTokens": {
												Description: "HTTPTokens determines the state of token usage for instance metadata requests. If metadata options is non-nil, but this parameter is not specified, the default state is \"optional\". \n If the state is optional, one can choose to retrieve instance metadata with or without a signed token header on the request. If one retrieves the IAM role credentials without a token, the version 1.0 role credentials are returned. If one retrieves the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned. \n If the state is \"required\", one must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credentials always returns the version 2.0 credentials; the version 1.0 credentials are not available.",
												Type:        "string",
											},
										},
										Type: "object",
									},
									"securityGroupSelector": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "SecurityGroups specify the names of the security groups.",
										Type:        "object",
									},
									"subnetSelector": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "SubnetSelector discovers subnets by tags. A value of \"\" is a wildcard.",
										Type:        "object",
									},
									"tags": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Tags to be applied on ec2 resources like instances and launch templates.",
										Type:        "object",
									},
									"userData": {
										Description: "UserData to be applied to the provisioned nodes. It must be in the appropriate format based on the AMIFamily in use. Karpenter will merge certain fields into this UserData to ensure nodes are being provisioned with the correct configuration.",
										Type:        "string",
									},
								},
								Type: "object",
							},
							"status": {
								Description: "AWSNodeTemplateStatus contains the resolved state of the AWSNodeTemplate",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"securityGroups": {
										Description: "SecurityGroups contains the current Security Groups values that are available to the cluster under the SecurityGroups selectors.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "SecurityGroupStatus contains resolved SecurityGroup selector values utilized for node launch",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"id": {
														Description: "Id of the security group",
														Type:        "string",
													},
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"subnets": {
										Description: "Subnets contains the current Subnet values that are available to the cluster under the subnet selectors.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "SubnetStatus contains resolved Subnet selector values utilized for node launch",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"id": {
														Description: "Id of the subnet",
														Type:        "string",
													},
													"zone": {
														Description: "The associated availability zone",
														Type:        "string",
													},
												},
												Type: "object",
											},
										},
										Type: "array",
									},
								},
								Type: "object",
							},
						},
						Type: "object",
					},
				},
				Served:       true,
				Storage:      true,
				Subresources: &apiextensionsv1.CustomResourceSubresources{},
			},
		},
	},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "apiextensions.k8s.io/v1",
		Kind:       "CustomResourceDefinition",
	},
}
View Source
var ProvisionersKarpenterShCRD = &apiextensionsv1.CustomResourceDefinition{
	ObjectMeta: metav1.ObjectMeta{
		Annotations: map[string]string{"controller-gen.kubebuilder.io/version": "v0.11.3"},
		Name:        "provisioners.karpenter.sh",
	},
	Spec: apiextensionsv1.CustomResourceDefinitionSpec{
		Group: "karpenter.sh",
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Categories: []string{"karpenter"},
			Kind:       "Provisioner",
			ListKind:   "ProvisionerList",
			Plural:     "provisioners",
			Singular:   "provisioner",
		},
		Scope: apiextensionsv1.ResourceScope("Cluster"),
		Versions: []apiextensionsv1.CustomResourceDefinitionVersion{
			{
				Name: "v1alpha5",
				Schema: &apiextensionsv1.CustomResourceValidation{
					OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
						Description: "Provisioner is the Schema for the Provisioners API",
						Properties: map[string]apiextensionsv1.JSONSchemaProps{
							"apiVersion": {
								Description: "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",
								Type:        "string",
							},
							"kind": {
								Description: "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",
								Type:        "string",
							},
							"metadata": {Type: "object"},
							"spec": {
								Description: "ProvisionerSpec is the top level provisioner specification. Provisioners launch nodes in response to pods that are unschedulable. A single provisioner is capable of managing a diverse set of nodes. Node properties are determined from a combination of provisioner and pod scheduling constraints.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"annotations": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Annotations are applied to every node.",
										Type:        "object",
									},
									"consolidation": {
										Description: "Consolidation are the consolidation parameters",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"enabled": {
												Description: "Enabled enables consolidation if it has been set",
												Type:        "boolean",
											},
										},
										Type: "object",
									},
									"kubeletConfiguration": {
										Description: "KubeletConfiguration are options passed to the kubelet when provisioning nodes",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"clusterDNS": {
												Description: "clusterDNS is a list of IP addresses for the cluster DNS server. Note that not all providers may use all addresses.",
												Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
												Type:        "array",
											},
											"containerRuntime": {
												Description: "ContainerRuntime is the container runtime to be used with your worker nodes.",
												Type:        "string",
											},
											"cpuCFSQuota": {
												Description: "CPUCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits.",
												Type:        "boolean",
											},
											"evictionHard": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
												},
												Description: "EvictionHard is the map of signal names to quantities that define hard eviction thresholds",
												Type:        "object",
											},
											"evictionMaxPodGracePeriod": {
												Description: "EvictionMaxPodGracePeriod is the maximum allowed grace period (in seconds) to use when terminating pods in response to soft eviction thresholds being met.",
												Format:      "int32",
												Type:        "integer",
											},
											"evictionSoft": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
												},
												Description: "EvictionSoft is the map of signal names to quantities that define soft eviction thresholds",
												Type:        "object",
											},
											"evictionSoftGracePeriod": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
												},
												Description: "EvictionSoftGracePeriod is the map of signal names to quantities that define grace periods for each eviction signal",
												Type:        "object",
											},
											"imageGCHighThresholdPercent": {
												Description: "ImageGCHighThresholdPercent is the percent of disk usage after which image garbage collection is always run. The percent is calculated by dividing this field value by 100, so this field must be between 0 and 100, inclusive. When specified, the value must be greater than ImageGCLowThresholdPercent.",
												Format:      "int32",
												Maximum:     P(100.0),
												Type:        "integer",
											},
											"imageGCLowThresholdPercent": {
												Description: "ImageGCLowThresholdPercent is the percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. The percent is calculated by dividing this field value by 100, so the field value must be between 0 and 100, inclusive. When specified, the value must be less than imageGCHighThresholdPercent",
												Format:      "int32",
												Maximum:     P(100.0),
												Type:        "integer",
											},
											"kubeReserved": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{
														AnyOf: []apiextensionsv1.JSONSchemaProps{
															{Type: "integer"},
															{Type: "string"},
														},
														Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
														XIntOrString: true,
													},
												},
												Description: "KubeReserved contains resources reserved for Kubernetes system components.",
												Type:        "object",
											},
											"maxPods": {
												Description: "MaxPods is an override for the maximum number of pods that can run on a worker node instance.",
												Format:      "int32",
												Type:        "integer",
											},
											"podsPerCore": {
												Description: "PodsPerCore is an override for the number of pods that can run on a worker node instance based on the number of cpu cores. This value cannot exceed MaxPods, so, if MaxPods is a lower value, that value will be used.",
												Format:      "int32",
												Type:        "integer",
											},
											"systemReserved": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{
														AnyOf: []apiextensionsv1.JSONSchemaProps{
															{Type: "integer"},
															{Type: "string"},
														},
														Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
														XIntOrString: true,
													},
												},
												Description: "SystemReserved contains resources reserved for OS system daemons and kernel memory.",
												Type:        "object",
											},
										},
										Type: "object",
									},
									"labels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Labels are layered with Requirements and applied to every node.",
										Type:        "object",
									},
									"limits": {
										Description: "Limits define a set of bounds for provisioning capacity.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"resources": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{
														AnyOf: []apiextensionsv1.JSONSchemaProps{
															{Type: "integer"},
															{Type: "string"},
														},
														Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
														XIntOrString: true,
													},
												},
												Description: "Resources contains all the allocatable resources that Karpenter supports for limiting.",
												Type:        "object",
											},
										},
										Type: "object",
									},
									"provider": {
										Description:            "Provider contains fields specific to your cloudprovider.",
										Type:                   "object",
										XPreserveUnknownFields: P(true),
									},
									"providerRef": {
										Description: "ProviderRef is a reference to a dedicated CRD for the chosen provider, that holds additional configuration options",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"apiVersion": {
												Description: "API version of the referent",
												Type:        "string",
											},
											"kind": {
												Description: "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
												Type:        "string",
											},
											"name": {
												Description: "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
												Type:        "string",
											},
										},
										Required: []string{"name"},
										Type:     "object",
									},
									"requirements": {
										Description: "Requirements are layered with Labels and applied to every node.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"key": {
														Description: "The label key that the selector applies to.",
														Type:        "string",
													},
													"operator": {
														Description: "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
														Type:        "string",
													},
													"values": {
														Description: "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
														Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
														Type:        "array",
													},
												},
												Required: []string{"key", "operator"},
												Type:     "object",
											},
										},
										Type: "array",
									},
									"startupTaints": {
										Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering.  StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"effect": {
														Description: "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.",
														Type:        "string",
													},
													"key": {
														Description: "Required. The taint key to be applied to a node.",
														Type:        "string",
													},
													"timeAdded": {
														Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
														Format:      "date-time",
														Type:        "string",
													},
													"value": {
														Description: "The taint value corresponding to the taint key.",
														Type:        "string",
													},
												},
												Required: []string{"effect", "key"},
												Type:     "object",
											},
										},
										Type: "array",
									},
									"taints": {
										Description: "Taints will be applied to every node launched by the Provisioner. If specified, the provisioner will not provision nodes for pods that do not have matching tolerations. Additional taints will be created that match pod tolerations on a per-node basis.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"effect": {
														Description: "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.",
														Type:        "string",
													},
													"key": {
														Description: "Required. The taint key to be applied to a node.",
														Type:        "string",
													},
													"timeAdded": {
														Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
														Format:      "date-time",
														Type:        "string",
													},
													"value": {
														Description: "The taint value corresponding to the taint key.",
														Type:        "string",
													},
												},
												Required: []string{"effect", "key"},
												Type:     "object",
											},
										},
										Type: "array",
									},
									"ttlSecondsAfterEmpty": {
										Description: "TTLSecondsAfterEmpty is the number of seconds the controller will wait before attempting to delete a node, measured from when the node is detected to be empty. A Node is considered to be empty when it does not have pods scheduled to it, excluding daemonsets. \n Termination due to no utilization is disabled if this field is not set.",
										Format:      "int64",
										Type:        "integer",
									},
									"ttlSecondsUntilExpired": {
										Description: "TTLSecondsUntilExpired is the number of seconds the controller will wait before terminating a node, measured from when the node is created. This is useful to implement features like eventually consistent node upgrade, memory leak protection, and disruption testing. \n Termination due to expiration is disabled if this field is not set.",
										Format:      "int64",
										Type:        "integer",
									},
									"weight": {
										Description: "Weight is the priority given to the provisioner during scheduling. A higher numerical weight indicates that this provisioner will be ordered ahead of other provisioners with lower weights. A provisioner with no weight will be treated as if it is a provisioner with a weight of 0.",
										Format:      "int32",
										Maximum:     P(100.0),
										Minimum:     P(1.0),
										Type:        "integer",
									},
								},
								Type: "object",
							},
							"status": {
								Description: "ProvisionerStatus defines the observed state of Provisioner",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"conditions": {
										Description: "Conditions is the set of conditions required for this provisioner to scale its target, and indicates whether or not those conditions are met.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "Condition defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"lastTransitionTime": {
														Description: "LastTransitionTime is the last time the condition transitioned from one status to another. We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic differences (all other things held constant).",
														Type:        "string",
													},
													"message": {
														Description: "A human readable message indicating details about the transition.",
														Type:        "string",
													},
													"reason": {
														Description: "The reason for the condition's last transition.",
														Type:        "string",
													},
													"severity": {
														Description: "Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error.",
														Type:        "string",
													},
													"status": {
														Description: "Status of the condition, one of True, False, Unknown.",
														Type:        "string",
													},
													"type": {
														Description: "Type of condition.",
														Type:        "string",
													},
												},
												Required: []string{"status", "type"},
												Type:     "object",
											},
										},
										Type: "array",
									},
									"lastScaleTime": {
										Description: "LastScaleTime is the last time the Provisioner scaled the number of nodes",
										Format:      "date-time",
										Type:        "string",
									},
									"resources": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{
												AnyOf: []apiextensionsv1.JSONSchemaProps{
													{Type: "integer"},
													{Type: "string"},
												},
												Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
												XIntOrString: true,
											},
										},
										Description: "Resources is the list of resources that have been provisioned.",
										Type:        "object",
									},
								},
								Type: "object",
							},
						},
						Type: "object",
					},
				},
				Served:       true,
				Storage:      true,
				Subresources: &apiextensionsv1.CustomResourceSubresources{},
			},
		},
	},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "apiextensions.k8s.io/v1",
		Kind:       "CustomResourceDefinition",
	},
}

Functions

func P

func P[T any](t T) *T

P returns a pointer to the given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL