pulumi-kubernetes 4.19.0a1733937243__py3-none-any.whl → 4.19.0a1733970382__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-kubernetes might be problematic. Click here for more details.

Files changed (87) hide show
  1. pulumi_kubernetes/__init__.py +36 -0
  2. pulumi_kubernetes/admissionregistration/v1/_inputs.py +6 -6
  3. pulumi_kubernetes/admissionregistration/v1/outputs.py +4 -4
  4. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
  5. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
  6. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
  7. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
  8. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
  9. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
  10. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +0 -8
  11. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +0 -8
  12. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
  13. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +1818 -315
  14. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1365 -246
  15. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +6 -6
  16. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +4 -4
  17. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  18. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  19. pulumi_kubernetes/apps/v1/_inputs.py +6 -6
  20. pulumi_kubernetes/apps/v1/outputs.py +4 -4
  21. pulumi_kubernetes/autoscaling/v2/_inputs.py +15 -15
  22. pulumi_kubernetes/autoscaling/v2/outputs.py +12 -12
  23. pulumi_kubernetes/batch/v1/_inputs.py +6 -6
  24. pulumi_kubernetes/batch/v1/outputs.py +4 -4
  25. pulumi_kubernetes/coordination/__init__.py +3 -0
  26. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +2 -0
  27. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +2 -0
  28. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
  29. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
  30. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
  31. pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
  32. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
  33. pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
  34. pulumi_kubernetes/core/v1/Binding.py +2 -2
  35. pulumi_kubernetes/core/v1/BindingPatch.py +2 -2
  36. pulumi_kubernetes/core/v1/ServiceAccount.py +4 -4
  37. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +4 -4
  38. pulumi_kubernetes/core/v1/_inputs.py +564 -313
  39. pulumi_kubernetes/core/v1/outputs.py +418 -230
  40. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +12 -12
  41. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +8 -8
  42. pulumi_kubernetes/pulumi-plugin.json +1 -1
  43. pulumi_kubernetes/resource/__init__.py +3 -0
  44. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  45. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  46. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  47. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  48. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  49. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  50. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  51. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  52. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  53. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  54. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +2 -0
  55. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +2 -0
  56. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  57. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  58. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  59. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  60. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +8 -8
  61. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
  62. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  63. pulumi_kubernetes/resource/v1alpha3/__init__.py +1 -0
  64. pulumi_kubernetes/resource/v1alpha3/_inputs.py +455 -7
  65. pulumi_kubernetes/resource/v1alpha3/outputs.py +592 -5
  66. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
  67. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
  68. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
  69. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
  70. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
  71. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
  72. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
  73. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
  74. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
  75. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
  76. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
  77. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
  78. pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
  79. pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
  80. pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
  81. pulumi_kubernetes/storage/v1/_inputs.py +4 -4
  82. pulumi_kubernetes/storage/v1/outputs.py +4 -4
  83. pulumi_kubernetes/yaml/yaml.py +90 -0
  84. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/METADATA +1 -1
  85. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/RECORD +87 -59
  86. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/WHEEL +0 -0
  87. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/top_level.txt +0 -0
@@ -1644,8 +1644,8 @@ class MetricSpec(dict):
1644
1644
  resource: Optional['outputs.ResourceMetricSource'] = None):
1645
1645
  """
1646
1646
  MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
1647
- :param str type: type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1648
- :param 'ContainerResourceMetricSourceArgs' container_resource: containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
1647
+ :param str type: type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
1648
+ :param 'ContainerResourceMetricSourceArgs' container_resource: containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1649
1649
  :param 'ExternalMetricSourceArgs' external: external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
1650
1650
  :param 'ObjectMetricSourceArgs' object: object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
1651
1651
  :param 'PodsMetricSourceArgs' pods: pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
@@ -1667,7 +1667,7 @@ class MetricSpec(dict):
1667
1667
  @pulumi.getter
1668
1668
  def type(self) -> str:
1669
1669
  """
1670
- type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1670
+ type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
1671
1671
  """
1672
1672
  return pulumi.get(self, "type")
1673
1673
 
@@ -1675,7 +1675,7 @@ class MetricSpec(dict):
1675
1675
  @pulumi.getter(name="containerResource")
1676
1676
  def container_resource(self) -> Optional['outputs.ContainerResourceMetricSource']:
1677
1677
  """
1678
- containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
1678
+ containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1679
1679
  """
1680
1680
  return pulumi.get(self, "container_resource")
1681
1681
 
@@ -1743,12 +1743,12 @@ class MetricSpecPatch(dict):
1743
1743
  type: Optional[str] = None):
1744
1744
  """
1745
1745
  MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
1746
- :param 'ContainerResourceMetricSourcePatchArgs' container_resource: containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
1746
+ :param 'ContainerResourceMetricSourcePatchArgs' container_resource: containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1747
1747
  :param 'ExternalMetricSourcePatchArgs' external: external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
1748
1748
  :param 'ObjectMetricSourcePatchArgs' object: object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
1749
1749
  :param 'PodsMetricSourcePatchArgs' pods: pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
1750
1750
  :param 'ResourceMetricSourcePatchArgs' resource: resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1751
- :param str type: type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1751
+ :param str type: type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
1752
1752
  """
1753
1753
  if container_resource is not None:
1754
1754
  pulumi.set(__self__, "container_resource", container_resource)
@@ -1767,7 +1767,7 @@ class MetricSpecPatch(dict):
1767
1767
  @pulumi.getter(name="containerResource")
1768
1768
  def container_resource(self) -> Optional['outputs.ContainerResourceMetricSourcePatch']:
1769
1769
  """
1770
- containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
1770
+ containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1771
1771
  """
1772
1772
  return pulumi.get(self, "container_resource")
1773
1773
 
@@ -1807,7 +1807,7 @@ class MetricSpecPatch(dict):
1807
1807
  @pulumi.getter
1808
1808
  def type(self) -> Optional[str]:
1809
1809
  """
1810
- type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1810
+ type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
1811
1811
  """
1812
1812
  return pulumi.get(self, "type")
1813
1813
 
@@ -1843,7 +1843,7 @@ class MetricStatus(dict):
1843
1843
  resource: Optional['outputs.ResourceMetricStatus'] = None):
1844
1844
  """
1845
1845
  MetricStatus describes the last-read state of a single metric.
1846
- :param str type: type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1846
+ :param str type: type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
1847
1847
  :param 'ContainerResourceMetricStatusArgs' container_resource: container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1848
1848
  :param 'ExternalMetricStatusArgs' external: external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
1849
1849
  :param 'ObjectMetricStatusArgs' object: object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
@@ -1866,7 +1866,7 @@ class MetricStatus(dict):
1866
1866
  @pulumi.getter
1867
1867
  def type(self) -> str:
1868
1868
  """
1869
- type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1869
+ type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
1870
1870
  """
1871
1871
  return pulumi.get(self, "type")
1872
1872
 
@@ -1947,7 +1947,7 @@ class MetricStatusPatch(dict):
1947
1947
  :param 'ObjectMetricStatusPatchArgs' object: object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
1948
1948
  :param 'PodsMetricStatusPatchArgs' pods: pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
1949
1949
  :param 'ResourceMetricStatusPatchArgs' resource: resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
1950
- :param str type: type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1950
+ :param str type: type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
1951
1951
  """
1952
1952
  if container_resource is not None:
1953
1953
  pulumi.set(__self__, "container_resource", container_resource)
@@ -2006,7 +2006,7 @@ class MetricStatusPatch(dict):
2006
2006
  @pulumi.getter
2007
2007
  def type(self) -> Optional[str]:
2008
2008
  """
2009
- type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
2009
+ type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
2010
2010
  """
2011
2011
  return pulumi.get(self, "type")
2012
2012
 
@@ -792,7 +792,7 @@ if not MYPY:
792
792
  """
793
793
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
794
794
 
795
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
795
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
796
796
  """
797
797
  manual_selector: NotRequired[pulumi.Input[bool]]
798
798
  """
@@ -878,7 +878,7 @@ class JobSpecPatchArgs:
878
878
  :param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
879
879
  :param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
880
880
 
881
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
881
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
882
882
  :param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
883
883
  :param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
884
884
  :param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
@@ -1002,7 +1002,7 @@ class JobSpecPatchArgs:
1002
1002
  """
1003
1003
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1004
1004
 
1005
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1005
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1006
1006
  """
1007
1007
  return pulumi.get(self, "managed_by")
1008
1008
 
@@ -1177,7 +1177,7 @@ if not MYPY:
1177
1177
  """
1178
1178
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1179
1179
 
1180
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1180
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1181
1181
  """
1182
1182
  manual_selector: NotRequired[pulumi.Input[bool]]
1183
1183
  """
@@ -1260,7 +1260,7 @@ class JobSpecArgs:
1260
1260
  :param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1261
1261
  :param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1262
1262
 
1263
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1263
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1264
1264
  :param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
1265
1265
  :param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1266
1266
  :param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
@@ -1394,7 +1394,7 @@ class JobSpecArgs:
1394
1394
  """
1395
1395
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1396
1396
 
1397
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1397
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1398
1398
  """
1399
1399
  return pulumi.get(self, "managed_by")
1400
1400
 
@@ -947,7 +947,7 @@ class JobSpec(dict):
947
947
  :param int completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
948
948
  :param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
949
949
 
950
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
950
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
951
951
  :param bool manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
952
952
  :param int max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
953
953
  :param int parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
@@ -1057,7 +1057,7 @@ class JobSpec(dict):
1057
1057
  """
1058
1058
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1059
1059
 
1060
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1060
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1061
1061
  """
1062
1062
  return pulumi.get(self, "managed_by")
1063
1063
 
@@ -1215,7 +1215,7 @@ class JobSpecPatch(dict):
1215
1215
  :param int completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1216
1216
  :param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1217
1217
 
1218
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1218
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1219
1219
  :param bool manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
1220
1220
  :param int max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1221
1221
  :param int parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
@@ -1319,7 +1319,7 @@ class JobSpecPatch(dict):
1319
1319
  """
1320
1320
  ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1321
1321
 
1322
- This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
1322
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1323
1323
  """
1324
1324
  return pulumi.get(self, "managed_by")
1325
1325
 
@@ -11,10 +11,13 @@ if typing.TYPE_CHECKING:
11
11
  v1 = __v1
12
12
  import pulumi_kubernetes.coordination.v1alpha1 as __v1alpha1
13
13
  v1alpha1 = __v1alpha1
14
+ import pulumi_kubernetes.coordination.v1alpha2 as __v1alpha2
15
+ v1alpha2 = __v1alpha2
14
16
  import pulumi_kubernetes.coordination.v1beta1 as __v1beta1
15
17
  v1beta1 = __v1beta1
16
18
  else:
17
19
  v1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1')
18
20
  v1alpha1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1alpha1')
21
+ v1alpha2 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1alpha2')
19
22
  v1beta1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1beta1')
20
23
 
@@ -152,6 +152,8 @@ class LeaseCandidate(pulumi.CustomResource):
152
152
  __props__.__dict__["kind"] = 'LeaseCandidate'
153
153
  __props__.__dict__["metadata"] = metadata
154
154
  __props__.__dict__["spec"] = spec
155
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidate")])
156
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
155
157
  super(LeaseCandidate, __self__).__init__(
156
158
  'kubernetes:coordination.k8s.io/v1alpha1:LeaseCandidate',
157
159
  resource_name,
@@ -164,6 +164,8 @@ class LeaseCandidatePatch(pulumi.CustomResource):
164
164
  __props__.__dict__["kind"] = 'LeaseCandidate'
165
165
  __props__.__dict__["metadata"] = metadata
166
166
  __props__.__dict__["spec"] = spec
167
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidatePatch")])
168
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
167
169
  super(LeaseCandidatePatch, __self__).__init__(
168
170
  'kubernetes:coordination.k8s.io/v1alpha1:LeaseCandidatePatch',
169
171
  resource_name,
@@ -0,0 +1,216 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from ... import _utilities
16
+ from . import outputs
17
+ from ... import meta as _meta
18
+ from ._inputs import *
19
+
20
+ __all__ = ['LeaseCandidateInitArgs', 'LeaseCandidate']
21
+
22
+ @pulumi.input_type
23
+ class LeaseCandidateInitArgs:
24
+ def __init__(__self__, *,
25
+ api_version: Optional[pulumi.Input[str]] = None,
26
+ kind: Optional[pulumi.Input[str]] = None,
27
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
28
+ spec: Optional[pulumi.Input['LeaseCandidateSpecArgs']] = None):
29
+ """
30
+ The set of arguments for constructing a LeaseCandidate resource.
31
+ :param pulumi.Input[str] api_version: 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
32
+ :param pulumi.Input[str] kind: 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
33
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
34
+ :param pulumi.Input['LeaseCandidateSpecArgs'] spec: spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
35
+ """
36
+ if api_version is not None:
37
+ pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1alpha2')
38
+ if kind is not None:
39
+ pulumi.set(__self__, "kind", 'LeaseCandidate')
40
+ if metadata is not None:
41
+ pulumi.set(__self__, "metadata", metadata)
42
+ if spec is not None:
43
+ pulumi.set(__self__, "spec", spec)
44
+
45
+ @property
46
+ @pulumi.getter(name="apiVersion")
47
+ def api_version(self) -> Optional[pulumi.Input[str]]:
48
+ """
49
+ 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
50
+ """
51
+ return pulumi.get(self, "api_version")
52
+
53
+ @api_version.setter
54
+ def api_version(self, value: Optional[pulumi.Input[str]]):
55
+ pulumi.set(self, "api_version", value)
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def kind(self) -> Optional[pulumi.Input[str]]:
60
+ """
61
+ 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
62
+ """
63
+ return pulumi.get(self, "kind")
64
+
65
+ @kind.setter
66
+ def kind(self, value: Optional[pulumi.Input[str]]):
67
+ pulumi.set(self, "kind", value)
68
+
69
+ @property
70
+ @pulumi.getter
71
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
72
+ """
73
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
74
+ """
75
+ return pulumi.get(self, "metadata")
76
+
77
+ @metadata.setter
78
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
79
+ pulumi.set(self, "metadata", value)
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def spec(self) -> Optional[pulumi.Input['LeaseCandidateSpecArgs']]:
84
+ """
85
+ spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
86
+ """
87
+ return pulumi.get(self, "spec")
88
+
89
+ @spec.setter
90
+ def spec(self, value: Optional[pulumi.Input['LeaseCandidateSpecArgs']]):
91
+ pulumi.set(self, "spec", value)
92
+
93
+
94
+ class LeaseCandidate(pulumi.CustomResource):
95
+ @overload
96
+ def __init__(__self__,
97
+ resource_name: str,
98
+ opts: Optional[pulumi.ResourceOptions] = None,
99
+ api_version: Optional[pulumi.Input[str]] = None,
100
+ kind: Optional[pulumi.Input[str]] = None,
101
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
102
+ spec: Optional[pulumi.Input[Union['LeaseCandidateSpecArgs', 'LeaseCandidateSpecArgsDict']]] = None,
103
+ __props__=None):
104
+ """
105
+ LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
106
+
107
+ :param str resource_name: The name of the resource.
108
+ :param pulumi.ResourceOptions opts: Options for the resource.
109
+ :param pulumi.Input[str] api_version: 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
110
+ :param pulumi.Input[str] kind: 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
111
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
112
+ :param pulumi.Input[Union['LeaseCandidateSpecArgs', 'LeaseCandidateSpecArgsDict']] spec: spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
113
+ """
114
+ ...
115
+ @overload
116
+ def __init__(__self__,
117
+ resource_name: str,
118
+ args: Optional[LeaseCandidateInitArgs] = None,
119
+ opts: Optional[pulumi.ResourceOptions] = None):
120
+ """
121
+ LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
122
+
123
+ :param str resource_name: The name of the resource.
124
+ :param LeaseCandidateInitArgs args: The arguments to use to populate this resource's properties.
125
+ :param pulumi.ResourceOptions opts: Options for the resource.
126
+ """
127
+ ...
128
+ def __init__(__self__, resource_name: str, *args, **kwargs):
129
+ resource_args, opts = _utilities.get_resource_args_opts(LeaseCandidateInitArgs, pulumi.ResourceOptions, *args, **kwargs)
130
+ if resource_args is not None:
131
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
132
+ else:
133
+ __self__._internal_init(resource_name, *args, **kwargs)
134
+
135
+ def _internal_init(__self__,
136
+ resource_name: str,
137
+ opts: Optional[pulumi.ResourceOptions] = None,
138
+ api_version: Optional[pulumi.Input[str]] = None,
139
+ kind: Optional[pulumi.Input[str]] = None,
140
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
141
+ spec: Optional[pulumi.Input[Union['LeaseCandidateSpecArgs', 'LeaseCandidateSpecArgsDict']]] = None,
142
+ __props__=None):
143
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
144
+ if not isinstance(opts, pulumi.ResourceOptions):
145
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
146
+ if opts.id is None:
147
+ if __props__ is not None:
148
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
149
+ __props__ = LeaseCandidateInitArgs.__new__(LeaseCandidateInitArgs)
150
+
151
+ __props__.__dict__["api_version"] = 'coordination.k8s.io/v1alpha2'
152
+ __props__.__dict__["kind"] = 'LeaseCandidate'
153
+ __props__.__dict__["metadata"] = metadata
154
+ __props__.__dict__["spec"] = spec
155
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1alpha1:LeaseCandidate")])
156
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
157
+ super(LeaseCandidate, __self__).__init__(
158
+ 'kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidate',
159
+ resource_name,
160
+ __props__,
161
+ opts)
162
+
163
+ @staticmethod
164
+ def get(resource_name: str,
165
+ id: pulumi.Input[str],
166
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'LeaseCandidate':
167
+ """
168
+ Get an existing LeaseCandidate resource's state with the given name, id, and optional extra
169
+ properties used to qualify the lookup.
170
+
171
+ :param str resource_name: The unique name of the resulting resource.
172
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
173
+ :param pulumi.ResourceOptions opts: Options for the resource.
174
+ """
175
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
176
+
177
+ __props__ = LeaseCandidateInitArgs.__new__(LeaseCandidateInitArgs)
178
+
179
+ __props__.__dict__["api_version"] = None
180
+ __props__.__dict__["kind"] = None
181
+ __props__.__dict__["metadata"] = None
182
+ __props__.__dict__["spec"] = None
183
+ return LeaseCandidate(resource_name, opts=opts, __props__=__props__)
184
+
185
+ @property
186
+ @pulumi.getter(name="apiVersion")
187
+ def api_version(self) -> pulumi.Output[str]:
188
+ """
189
+ 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
190
+ """
191
+ return pulumi.get(self, "api_version")
192
+
193
+ @property
194
+ @pulumi.getter
195
+ def kind(self) -> pulumi.Output[str]:
196
+ """
197
+ 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
198
+ """
199
+ return pulumi.get(self, "kind")
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
204
+ """
205
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
206
+ """
207
+ return pulumi.get(self, "metadata")
208
+
209
+ @property
210
+ @pulumi.getter
211
+ def spec(self) -> pulumi.Output['outputs.LeaseCandidateSpec']:
212
+ """
213
+ spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
214
+ """
215
+ return pulumi.get(self, "spec")
216
+